consider that :eof is returned when read empty file
Merge pull request #4 from Joe-noh/empty-file

consider that :eof is returned when read empty file