gnu.de
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

file

FPL

8 May 1998 8 May '98
1:20 p.m.
...
...

?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

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.12.