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
Comment #2 by github-bugzilla — 2015-02-02T06:10:14Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/cb4463fea40bd16b3028d21f1a76785cb7905709 fix Issue 14110 - std.file.read cannot read files open for writing https://github.com/D-Programming-Language/phobos/commit/accb351b96bb04a6890bb7df018749337e55eccc Merge pull request #2948 from CyberShadow/pull-20150202-045026 fix Issue 14110 - std.file.read cannot read files open for writing
Comment #3 by github-bugzilla — 2015-02-18T03:41:50Z