----- Original Message ----- From: david@tcs01.demon.co.uk To: gpc@gnu.de Sent: Sunday, April 18, 2004 8:16 AM Subject: Re: Closing a file
ih8mj@fjf.gnu.de wrote:
Andy Ball wrote:
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);
Just FMI, which Pascal compiler is this? We've seen various syntaxes in this area, but I can't remember seeing this one.
UCSD P-system unless my memory fails me.
UCSD has the form:
close(filename, option)
Where option is a "word":
normal lock purge crunch
Note that a filename (not handle or var file reference) is used, and that "word" as option pretty much requires close to be a compiler built-in statement.
From "The UCSD Pascal Handbook", Clark & Koehler.
You will find similar constructs in other compilers, since many compilers copied UCSD, including Apple.