EOF check in readAll