Closes an open file.
[ lStatus = ] FileClose ( hFile )
The FileClose procedure syntax has the following parts:
Name |
Type |
Description |
lStatus |
Long |
Status: <> 0 failure, 0 success |
hFile |
Val AFile |
Handle to the file |
The FileClose function closes an open file associated with hFile. Once this function is executed, the hFile can no longer be used with other file procedures.
ATEasy automatically closes all open files upon exiting or when the user selects Reset from the Run menu.
The hFile specifies the ATEasy file handle obtained by the FileOpen or FileCreate function.
The FileClose function returns -1 upon failure.
If FileClose(hFile) <> 0 Then
Print "Error During FileClose..."
Endif