jdoe
Joined: 25 Dec 2004 Posts: 2
|
Posted: Sat Dec 25, 2004 6:32 pm Post subject: opening/reading-in byte-by-byte |
|
|
Forgive me if this is a lame question (I haven't used Fortran in the last 20+years), but how can I succcessfully read data from a file one byte at a time regardless of what the byte is (EOF, carriage-return, or whatever). I've tried all sorts of permutations of the read and open commands with various data types and formats, but without much success.
BTW, to test the program's read capability, I'm using an input file that contains all 256, 8-bit ACSII characters. My best results don't get past character 16 (decimal) without an "input record too short" read error.
PS For portability, I'd like to stick with Fortran commands and not dip into DLL's.
Thanks! |
|