[Issue 14110] New: std.file.read cannot read files open for writing

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 20:55:46 PST 2015


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 at puremagic.com
          Reporter: thecybershadow at 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.

--


More information about the Digitalmars-d-bugs mailing list