|
This function opens the specified file with the corresponding access on the server. It returns the Id, that must be assigned to a (integer) variable. In all subsequent operations (for example reading, writing, or closing) the file is addressed by means of this ID. The number of files that can be open at the same time is only limited by parameters of the operating system, and not by LogiView. |
|||
![]() |
This function cannot be called as a conditional instruction. | |||
Syntax: |
||||
{INT_VAR}= open({STR_EXPR},{"r","w","a"}) | ||||
I/O parameters: |
||||
Return value: |
||||
|
||||
Example: |
||||
Declaration of Variables | ||||
10 DOCU_INT_1 = open("\tmp\test.doc","r") |
||||
Result: | ||||
The file "test.doc" is opened on the server in the "tmp" directory. If the "tmp" directory does not exist or the file cannot not be opened, an error message is displayed and the processing is stopped. | ||||
![]() |
||||
![]() |
Functions and commands: File Interface |