Python Forum

Full Version: Reading an Input File
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I hope this makes sense. I have a Python script that reads an input (binary??) file of geographic coordinates and I get this error:

forrtl: severe (24): end of file during read. unit 23 file /home/filename

This seems to relate that the code was expecting an EOF in the input file but this was absent. Would someone be able to tell how I check for this in the input file and what keystroke(s) are required for an EOF and exactly where this is placed.

Many thanks.
Code please