?GPC runtime error: File is not open for writing (#9)
This sounds strange and *maybe* indicates a bug. How did you open the file?
readln(nom_de_fichier); writeln; assign(f, nom_de_fichier);
The following should work:
Assign ( MyFile, 'filename.txt' ); rewrite ( MyFile ); writeln ( 'Hello?' ); writeln ( MyFile, 'Hello!' ); close ( MyFile );
Well, I do read in the file, when GPC exists nothing still has been written in it. I use readln(f, string) (file of type text), and also a read of the content character per character. I use GPC eof and eoln, I close the file and when, It is after the file has been closed, I submit a write(Ilargeur_pattern); ?GPC runtime error: File is not open for writing (#9) Program exited with code 01. I have tested Antoine's suppression of (input, output) but it does not change anything (and I took advantage of his relating story to take one more coffee too). Cheers. F.P.L