[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Reading from an empty file
- From: Shmuel Zeigerman <shmuz@...>
- Date: Tue, 05 Sep 2017 16:13:45 +0300
I wonder why the first read from an empty file returns nil rather than
an empty string.
E.g. fp:read(10) --> nil
If the zero-sized file exists then it can be interpreted as a file
containing an empty string (IMHO).
--
Shmuel