#

# LogiView

## Functions and Commands

| ## File Interface
| The following functions and commands are available to edit ASCII files:
close | close({INT_VAR}) This command closes a file that has previously been opened for reading or writing using 'open'.
delete | delete({STR_EXPR}) or delete({STR_EXPR},{/CLIENT}) This command can be used to delete a file.
eof | {LOG_VAR}= eof({INT_VAR}) This function checks if the end of a file has been reached that has been opened for reading.
exists | {LOG_VAR}= exists({STR_EXPR},{"r"|"w"|"x"}) or {LOG_VAR}= exists({STR_EXPR},{"r"|"w"|"x"},{"/CLIENT"}) This function checks if the specified file exists with the corresponding access.
file_choose | {LOG_VAR}= file_choose ({STR_VAR},{STR_EXPR},{STR_EXPR}) This function can be used to select a file from the local file system of a client computer. For this purpose the following selection widget is opened.
file_get | file_get({STR_EXPR},{STR_EXPR},{"/BIN"|"/ASC"}) This command is used to copy a file from a client to the server.
file_put | file_put({STR_EXPR},{STR_EXPR},{"/BIN"|"/ASC"}) This command is used to copy a file from a server to a client.
open | {INT_VAR}= open({STR_EXPR},{"r","w","a"}) This function opens the specified file with the corresponding access on the server.
readln | readln({INT_VAR},{VAR_LIST}) This command is used to read a file line-by-line.
rewind | rewind({INT_VAR}) This command is used to reset the file pointer to the beginning of the specified file.
writeln | writeln({INT_VAR},{EXPR_LIST}) This command is used to write a file line-by-line.