#

# LogiView

## Command 'close'

| This command closes a file that has previously been opened for read or write access using 'open'.
| This command must not be called in a conditional instruction.
| ### Syntax:
| close({INT_VAR})
| ### I/O parameters:
| {INT_VAR} | Integer variable with file ID number (is assigned when opening the file).
| - |
| ### Return value:
| - |
| ### Return code:
| 0 | No errors during command execution.
| ### Example:
| Declaration of Variables
    60 DOCU_INT_1=open(DOCU_STRING_1,"a")
    70 DOCU_STRING_1="Part of a longer example."
    80 writeln(DOCU_INT_1,DOCU_STRING_2)
    90 close(DOCU_INT_1)
| Result:
| The string expression "Part of a longer example." is added to the file that has been opened for write access in DOCU_STRING_1. The file is subsequently closed.
| Functions and commands: File Interface