I must be missing something in the translation.
How do you know it does not stop reading? Where is it reading to?

Might be a good idea to post your code.