-
Notifications
You must be signed in to change notification settings - Fork 2
_fclose
bergsma edited this page Sep 26, 2014
·
5 revisions
#fclose
###Close a file.
Syntax
status = fclose fileHandle ;
Arguments
- handle fileHandle
The handle to the file opened with fopen().
Return Value
str status
- $ACKNOWLEDGE : The file was closed.
The STATUS variable is set to $ACKNOWLEDGE
str status
- $ACKNOWLEDGE : The file was closed.
The STATUS variable is set to $ACKNOWLEDGE
Exceptions
- %ARGUMENT: Invalid arguments. Usage: status = fclose fileHandle ;
Description
- None
Examples
handle h = fopen ( "test.dat", "r" ) ;
str line = fgets ( h ) ;
fclose ( h ) ;
Related Links