Indeed, that shouldn't be the case. I filed a bug request:

http://d.puremagic.com/issues/show_bug.cgi?id=9661

While it isn't fixed, assign file to a variable so that it doesn't go out of scope.

On Thursday, 7 March 2013 at 16:20:24 UTC, bioinfornatics wrote:

I only replace write by put and do this:
auto output = File( f.absolutePath().expandTilde(), "w" ).lockingTextWriter();


that build without get an error but at runtime i got:
std.exception.ErrnoException@/env/export/nfs2/cns_prog/opt/gdc/include/d/4.7.2/std/stdio.d(1267):
 (Bad file descriptor)

Reply via email to