Re: How do I create a fileWatcher with an onFileChange event using spawn?

2017-11-12 Thread shuji via Digitalmars-d-learn
On Friday, 25 August 2017 at 21:25:37 UTC, Enjoys Math wrote: Something like this: module file_watcher; import std.concurrency; import std.file; import std.signals; import std.datetime; void fileWatcher(Tid tid, string filename, int loopSleep) { auto modified0 =

Re: How to detect current executable file name?

2014-07-31 Thread shuji via Digitalmars-d-learn
There is a solution already for this: http://dlang.org/phobos/std_file.html#.thisExePath (just for future reference, it's seriously hard to search on google)