I have a study which accesses data from a web site. This is a holiday file. Very simple, each line contains a date which is a market holiday.
When the indicator loads this file is read once and the dates are stored in an array. So far, so good.
Sometimes, the web site is down and so the file cannot be read.
The solution that I am thinking of is to read the holiday file from the web site and write it to the local drive and on subsequent loads read it locally. Again, no problem with this.
The problem is that I want the local file to be updated from the server every (say) 1 week. Correct me if I'm wrong but there is no way to get the write date of a local file from EFS is there?
Anybody have any ideas how to solve this? i.e. The ability to download a data file on an ad hoc basis from a server...
When the indicator loads this file is read once and the dates are stored in an array. So far, so good.
Sometimes, the web site is down and so the file cannot be read.
The solution that I am thinking of is to read the holiday file from the web site and write it to the local drive and on subsequent loads read it locally. Again, no problem with this.
The problem is that I want the local file to be updated from the server every (say) 1 week. Correct me if I'm wrong but there is no way to get the write date of a local file from EFS is there?
Anybody have any ideas how to solve this? i.e. The ability to download a data file on an ad hoc basis from a server...
Comment