17 Apr
2004
17 Apr
'04
6:29 p.m.
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.
8149
Age (days ago)
8154
Last active (days ago)
21 comments
8 participants
participants (8)
-
Adriaan van Os -
Andy Ball -
CBFalconer -
david@tcs01.demon.co.uk -
Frank Heckenbach -
Gale Paeper -
Maurice Lombardi -
Scott Moore