fclose


Purpose
Close the active input or output stream.
Synopsis
procedure fclose(stream:integer)
Argument
stream 
The stream to close:
F_INPUT 
Input stream
F_OUTPUT 
Output 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 or output stream). All open streams are automatically closed when the program terminates.
Related topics
fflush, fopen, fselect, getfid, iseof.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.