in reply to Re^3: File read errors
in thread File read errors

Pardon me saying this, but your real coding error was not to check the return result from open.