New in version 28
<Result> = fClose(<File used>)
- 0 is the external file is closed,
- -1 if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant. fClose throws an error if the file is not opened.
<File used>: Integer or DiskFile variable
This parameter must be a variant.
Closing a file opened several times
The same file can be opened several times simultaneously. Each version of the file must be closed individually via its own identifier.
Closing a locked file
A blocked file will be automatically unblocked when you close it.
is used to lock an external file. fUnlock
is used to unlock an external file.
Business / UI classification: Business Logic