[erlang-bugs] file:pread 0 bytes in raw mode yields eof
Tue May 17 22:27:01 CEST 2011
On 05/17/2011 06:07 PM, Richard Carlsson wrote:
> Normally, file:read and file:pread both return an empty list or binary
> if the number of bytes to be read is zero, but if the file is opened in
> raw mode, trying to read zero bytes yields EOF instead.
Clarification: only file:pread yields eof in raw mode. file:read works
as normal. Tested on R13B04 and R14B01.
More information about the erlang-bugs