CloseFile()

Syntax

CloseFile(#File)
Description
Close the specified file.

Parameters

#File The file to close. If #PB_All is specified, all the remaining files are closed.

Return value

None.

Remarks

Once the file is closed, it may not be used anymore. Closing a file ensures the buffer will effectively be put to the disk.

All remaining opened files are automatically closed when the program ends.

For an example see the ReadFile() or the CreateFile() functions.

See Also

CreateFile(), OpenFile(), ReadFile()

Supported OS

All

File Index - CreateFile() ->