Purpose With CloseFile you can close a fileopened with OpenFile.
Examples

Further examples
CloseFile "X:GuiXTFiles\MatDes.txt"

The file is closed. The next ReadFile command starts at the beginning of the file with the first record.

Format CloseFile "filename"
Tips
& Tricks

Opening and closing a file is valid for each SAP mode separately

Open files are closed when the SAP client is closed and any changes are written. To avoid unexpected behaviour, the use of CloseFile is recommended.

Components GuiXT + InputAssistant