fixed bug of not read file when is at end of file
Merge pull request #22 from gridnow/master

fixed bug of not read file when is at end of file