Initializing help system before first use

fclose

fclose


Purpose
Close the active input , output or error stream.
Synopsis
procedure fclose(stream:integer)
Argument
stream 
The stream to close:
F_INPUT 
Input stream
F_OUTPUT 
Output stream
F_ERROR 
Error stream
Further information
This procedure closes the file that is currently associated with the given stream. The file preceding the closed file (in the order of opening) is then assigned to the corresponding stream. A file that is closed with this procedure must previously have been opened with fopen. This function has no effect if the corresponding stream is not associated with any explicitly opened file ( i.e. it is not possible to close the default input, output or error streams). All open streams are automatically closed when the program terminates.
Related topics