question when writing to a file

lomereiter lomereiter at gmail.com
Thu Mar 7 08:47:08 PST 2013


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)



More information about the Digitalmars-d-learn mailing list