R1TMARG%AKRONVM.BITNET@cornellc.cit.cornell.edu (Tim Margush) (11/28/89)
Regarding the inquiry concerning the maximum length of a line in an
external file when written from a turbo pascal program...
The answers posted to the net all confused the file question with
a question about strings or other form of internal storage.
To my knowledge, there is no maximum length file... (limited only by
disk space). The sequence:
max:=whatever;
for i:=1 to max do write(f,'a');
writeln(f)
will create a 1-line file (of a's) with a line of arbitrary (max) length.
"Lines" in a file are determined by the presence of line separators
(carriage return/line feed).
Incidentally, does turbo respect either of these or both? Does a read(f,ch)
return a "space" when eoln(f) is true?