According to Thomas Tan:
I need to create a new text file, put some string in it, and save it to disk. Is this possible in GPC?
With gpc-971001 you can do it just like with Borland Pascal:
Program Hello;
Var MyFile: Text; S: String [ 42 ];
begin S:= 'Hello, world!'; Assign ( MyFile, 'hello.dat' ); rewrite ( MyFile ); writeln ( MyFile, S ); close ( MyFile ); end.
Hope this helps,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]