[erlang-bugs] file:pread 0 bytes in raw mode yields eof

Richard Carlsson <>
Tue May 17 18:07:33 CEST 2011


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.

    /Richard


More information about the erlang-bugs mailing list