File Handling
Maurice Lombardi
Maurice.LOMBARDI at ujf-grenoble.fr
Mon Nov 3 21:03:08 CET 1997
> var f : TEXT; { same as FILE OF CHAR, I think }
Not exactly. TEXT is line oriented, whereas FILE OF CHAR is not.TEXT incorporates
built_in functions writeln, readln and eoln which enable
to manage with the same Pascal instructions files on different systems which
have different line end delimiters (Line Feed in Unix, Return-Line Feed
in DOS, Return for MAC I guess). With File Of char you have to
do it manually and thus know what is the line delimiter on your system.
You have the same problem when FTPing ASCII files in binary, then the
line end delimiter transformation is not done.
--
Maurice Lombardi
Lab. Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: (33) 4 7651 4751. Fax (33) 4 7651 4544.
More information about the Gpc
mailing list