dont reach eof and return a doc
Merge pull request #58 from hanumantmk/CDRIVER-359

dont reach eof and return a doc