in reply to Reading from a file

All of the code examples shown close the file after using it. Your code didn't show that. Do you close the file?

-ted-