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

Richard Carlsson carlsson.richard@REDACTED
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.

     /Richard



More information about the erlang-bugs mailing list