I also saw that a redirect in my case is much simpler by using spawnProcess:
auto logFile = File("errors.log", "w"); auto pid = spawnProcess(["dmd", "myprog.d"], std.stdio.stdin, std.stdio.stdout, logFile);
Thomas Mader via Digitalmars-d-learn Fri, 15 Aug 2014 13:35:42 -0700
I also saw that a redirect in my case is much simpler by using spawnProcess:
auto logFile = File("errors.log", "w"); auto pid = spawnProcess(["dmd", "myprog.d"], std.stdio.stdin, std.stdio.stdout, logFile);