Scott Moore wrote:
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.
In Apple II UCSD Pascal, the first parameter is not a filename but "the identifier of a perviously declared file". Also, the second parameter is optional. See page 28 of the Apple II UCSD Pascal Language Reference. Also, the description doesn't state that option parameter is a "word".
Regards,
Adriaan van Os