Tom Schneider wrote:
I wrote before:
EOF is not true on a reset empty file.
for GPC.
gpc 20040516, based on gcc-3.3.3
I just found in the book
PASCAL User Manual and Report, Fourth Edition ISO Pascal Standard, Kathleen Jensen and Niklaus Wirth 1991 page 158:
"A file is called \emph{empty} if its length is zero."
As you can see in the previous email, I created two empty files with echo -n "" > filename and then showed by three tests (file, ls and wc) that they were empty. In the GPC compiled program, I reset each file and then tested them and found that each was not at eof.
Regards,
Tom
I think, in the long run, GPC will be the best Pascal choice. But your important efforts to re-establish Pascal in your area of research don't have the luxury of time. If you have not tried the Free Pascal Compiler, it might be worth a try. Sincerely, Rick.