Rewrite/Reset with filename as second parameter

Wed, 22 Oct 1997 13:44:48 +0100 (MET)


Should GPC allow passing the filename to Rewrite/Reset as the second
parameter, rather than calling Assign prior to the call to Rewrite/Reset?
(several Pascal compilers outside the Borland family have this feature).

Currrently, the the program below compiles correctly, but at run-time it
stops with the error message

  ?GPC runtime error: (gpc-rts) Internal file namei wrong (#700)


program Test;

var
  F : Text;

begin
  Rewrite (F, 'test.out');
  Writeln (F, 'This is a test ....');
  Close (F);
end.


Jesper Lund



Jesper Lund (jel@hha.dk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es