1 Nov
1997
1 Nov
'97
2:35 a.m.
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]
10513
Age (days ago)
10513
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Gerwinski