Repeated use of io:fread fails
Bengt Kleberg
eleberg@REDACTED
Fri Oct 25 12:10:12 CEST 2002
> X-Authentication-Warning: olive.home.net: rprice owned process doing -bs
> Date: Fri, 25 Oct 2002 11:38:56 +0200 (CEST)
> From: Roger Price <rprice@REDACTED>
...deelted
> Is it illegal to make consecutive calls to io:fread?
no solution, but another data item:
removing the newline at the end of the file gives the following result:
X={error,fread}. Y=eof.
fread() input without newline seems to give {error,fread}.
and fread() input with newline seems to always read until newline,
discarding extra terms.
bengt
More information about the erlang-questions
mailing list