www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14110] New: std.file.read cannot read files open for writing

https://issues.dlang.org/show_bug.cgi?id=14110

          Issue ID: 14110
           Summary: std.file.read cannot read files open for writing
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

On Windows, std.file.read will fail to read files that are already open for
writing (usually by another process).

This is an issue when trying e.g. to read a log file that is still being
written.

Programs such as Notepad, Internet Explorer, Firefox all succeed in opening the
file, so D's behavior is unusual.

--
Feb 01 2015