Reading file contents when file has changed

2012-07-13 Thread OlaOst
I'm working on a program (using dmd 2.059 under windows) that automatically reloads the contents of a file if it has changed, by checking the last modified timestamp on the file every 0.2 seconds, then using the readText function in std.file to read in the file contents. It works pretty

Re: Reading file contents when file has changed

2012-07-13 Thread Kevin Cox
On Jul 13, 2012 4:40 PM, OlaOst ola...@gmail.com wrote: I'm working on a program (using dmd 2.059 under windows) that automatically reloads the contents of a file if it has changed, by checking the last modified timestamp on the file every 0.2 seconds, then using the readText function in

Re: Reading file contents when file has changed

2012-07-13 Thread Simon
On 13/07/2012 21:47, Kevin Cox wrote: On Jul 13, 2012 4:40 PM, OlaOst ola...@gmail.com mailto:ola...@gmail.com wrote: I'm working on a program (using dmd 2.059 under windows) that automatically reloads the contents of a file if it has changed, by checking the last modified timestamp on the