LOTUSSCRIPT LANGUAGE


Open statement
Example

Opens a file, enabling access to it for reading or writing data.

Syntax

Open fileName

[ For { Random | Input | Output | Append | Binary } ]

[ Access { Read | Read Write | Write } ]

[ { Shared | Lock Read | Lock Read Write | Lock Write } ]

As [#]fileNumber

[ Len = recLen ]

[Charset = MIMECharsetName]

This statement must appear on one line, unless you use an underscore ( _ ) for line continuation.

Elements

fileName


For mode Access operations Lock type fileNumber
recLen
MIMECharsetName
Usage

If a file is already open in Binary, Random, or Input mode, you can open a copy of the file using a different file number, without closing the open file. If a file is already open in Append or Output mode, you must close it before opening it with a different file number.

LotusScript limits the number of open files to 255. Depending on your operating system environment and the Lotus software you are running, the actual number of files that you can open may be 15 or less. See your product documentation for details.

Example
See Also