Skip to content

_fclose

bergsma edited this page Sep 26, 2014 · 5 revisions

#fclose

###Close a file.

Syntax

status = fclose fileHandle ;

Arguments

  1. 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

fopen

Clone this wiki locally