Hello,
Is there anything special that I need to do to commit a file to disk after I have written to it? My old Pascal book says to use...
CLOSE(FILEHANDLE,LOCK);
...which gpc complains about. I have tried...
CLOSE(FILEHANDLE);
...which compiles okay, but doesn't seem to commit the data (I wind up with a zero-length file.
I've tried including the filename in the program parameters, which is suggested by the book, but gpc didn't seem to like that either.
I'm also not sure whether I need to pass the file handle as a parameter to the procedure that's doing the writing, or how I would do that (I did try, but without success).
This is my first Pascal program... http://grex.cyberspace.org/~ball/test5.pas
- Andy.