io interleaving
Raimo Niskanen
raimo.niskanen@REDACTED
Fri Mar 14 17:12:48 CET 2003
Sorry for the late reply. I am digging in this code now for other
reasons and have fixed the bug, in the next R9 release.
The Erlang file I/O server did some read ahead, and writes did not
reposition to compensate for buffered read data (if any).
/ Raimo Niskanen, Erlang/OTP
-----------------------------------------------------------
Subject: io interleaving?
From: Bengt Kleberg <eleberg@REDACTED>
Date: Mon, 24 Feb 2003 14:39:33 +0100 (MET)
To: erlang-questions@REDACTED
greetings,
where should io:fwrite() place things in a file?
i have the following file
line r1
line r2
line r3
if i open the file [read, write], write ''line w1'' and read ''line
r2'' i have the contents:
line w1
line r2
line r3
however, if i open the file [read, write], read ''line r1'' and write
''line w1'' i have the contents:
line r1
line r2
line r3
line w1
i would have expected:
line r1
line w1
line r3
is this a bug, or, why is it like this?
bengt
More information about the erlang-questions
mailing list