Equinox Online Help - Language Reference - A to Z
FileClose |
|
---|---|
Applies to | |
Syntax | FileClose HandleItem |
Action | [Statement] Closes a file previously opened with the FileOpen statement. This can be used to close both random and sequential files. |
Scope | Usable anywhere. |
Notes | The HandleItem parameter must be an Equinox variable type Handle and is the handle of the file which was opened with the FileOpen statement. The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero. |
Category | File IO |
See Also | FileCloseAll, FileDelimiters, FileInput, FileInputLine, FileLock, FileMovePosition, FileOpen, FilePosition, FilePrint, FileRead, FileReadLine, FileReadBinary, FileReadFile, FileWrite, FileWriteBinary, FileWriteFile |
Example | The following example opens a sequential file for reading and writing, places a text string in it and closes it. handle hnd |