Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!ctrsol!cica!iuvax!purdue!haven!adm!xadmx!R1TMARG%AKRONVM.BITNET@cornellc.cit.cornell.edu From: R1TMARG%AKRONVM.BITNET@cornellc.cit.cornell.edu (Tim Margush) Newsgroups: comp.lang.pascal Subject: RE: Length of file lines in turbo Message-ID: <21538@adm.BRL.MIL> Date: 27 Nov 89 19:36:47 GMT Sender: news@adm.BRL.MIL Lines: 19 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?