www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.stream.File fix

I rewrote this class to fix the following:

1) open() and constructor will now create the file if the file doesn't exist
and only if mode FileMode.Out is specified.
2) Linux error codes were being returned as sizes instead of being handled.
3) Files are now being shared for read and write on Windows, like fopen().

This attached code is donated to the origional author of stream.d and can
have the same license. I'm going to be fixing up parts of phobos for awhile
now and if the changes aren't added, I'll release my own library.

--
Christopher E. Miller
May 08 2004