Hello !
I'm very sorry for my last e-mail concerning this subject ! I had a little error with my mail-system
I don't speak Dutch, what do you mean bis den?
:-) It has nothing to do with Dutch. It's German for 'Good bye' ! My mailer simply sent only the signature file (as you see, it is not inter- national, I'll change this) and forgot the Body of my mail. Ok, I'll try it once again :
program file_test; var f : TEXT; { same as FILE OF CHAR, I think } begin assign(f,'filename'); { connect virtual f to physical file on disk } rewrite(f); { CREATE f or overwrite an old file with the same name as f } writeln(f,'This is a test-string'); { insert 'This..' in f and append CR } close(f); { write virtual f into 'filename' on disk and close file } end.
If you want to access a file, which already exists use reset(f) instead of rewrite(f).
Hope it is helpful...
--Chris
e-mail > chris@bockermann.ping.de ____________________________________ (subject "send pgp-key" for pgp-key)
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.
Hello !
Maurice Lombardi wrote :
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.
Oh, yes, I agree ! That was just, what I found in Pascal-Book. But I think without looking at the built-in functions it is the same (however VERY similar) :-)
Chris
e-mail > chris@bockermann.ping.de ____________________________________ (subject "send pgp-key" for pgp-key)