if txt rdlength is 0, not read anymore
Merge pull request #68 from soh335/fix/empty-txt

if txt rdlength is 0, not read anymore