|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - Reading a File That is Being Written To From Phobos
It seems that Phobos won't allow opening a file that is being written to by another program. I understand that this is unsafe behavior. However, for my purposes, I don't care and want to do it anyhow. (My purposes are that I have a program periodically dumping data to a file and every once in a while I want another program to just parse the results and print a summary to the screen). I usually receive a message like: std.stream.OpenException: Cannot open or create file <filename> This occurs even when I can open the file in vi, etc. Is this a conscious design decision? If not, is it a legitimate bug? Jun 15 2009
dsimcha wrote:It seems that Phobos won't allow opening a file that is being written to by another program. I understand that this is unsafe behavior. However, for my purposes, I don't care and want to do it anyhow. (My purposes are that I have a program periodically dumping data to a file and every once in a while I want another program to just parse the results and print a summary to the screen). I usually receive a message like: std.stream.OpenException: Cannot open or create file <filename> This occurs even when I can open the file in vi, etc. Is this a conscious design decision? If not, is it a legitimate bug? Jun 15 2009
|