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