Bug 14110 – std.file.read cannot read files open for writing
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2015-02-02T04:55:00Z
Last change time
2015-02-18T03:41:50Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2015-02-02T04:55:46Z
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.
Comment #1 by dlang-bugzilla — 2015-02-02T04:56:26Z