fileClose
|
The fileClose function closes a file with the specified fileID {fileID} . Usage The fileClose function is used to close a file and optionally erase it after
closing. The fileClose function commits any records that were written after the
fileOpen and before the fileClose functions.
(fileClose -1) (fileClose fileID) (fileClose fileID option) If the close is successful, the Boolean value, true is returned
Expression:
Arguments
Name
Type
Description Argument: fileID Word
The file identifier to be closed (returned from a previous call to the fileOpen function), OR
the integer constant -1 (indication that ALL open files are to be closed). Argument: option Word
(Optional) The file close option: 0 = erase file after closing, 1 = don't erase file after closing (default).
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
ByteVector | Text | Integer | Boolean |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|