All,
I have inherited a legacy Fortran system which contains several different modules which read ASCII text files from various logical units. Examples:
100 read (userin,1,iostas=ios) line
READ(I3,805) ACTYCO,
etc.
The Fortran system is distributed with the necessary ASCII text files. I have been given the task to only delivered the system with binary files instead of ASCII files for proprietary data security. An easy solution would be to add a converter of the binary files to ASCII in a temporary file at the beginning of the system and then delete the temporary ASCII files after all the reads are complete. This solution has been removed due to the possible of temporary file remaining on the user's machine after an unexpected crash of the Fortran.
So, my question is: Can I override the "READ" function in Fortran ( similar to C capability ) to insert my own READ which would handle either ASCII or binary? This would allow me to not change the hundred or so READ statements in the legacy code. Also, if there is a more elegant solution this the problem stated, I am all ears.
Thanks,
Bryan