File operations
The following table describes the three kinds of files
in LotusScript: sequential,
random, and binary.
Sequential files
A sequential file is an ordinary text file. Each character
in the file is assumed to be either a text character or some other
ASCII control character such as newline. The character is in the character
set specified when the file is opened. By default this is the platform-native
character set.
Random files
A random file is made up of a series of records of identical
length. A record can correspond to a scalar data type, such as Integer
or String, or to a user-defined type, in which each record is broken
down into fields corresponding to the members of the type.
Binary files
Binary files are designed to provide the most control over
the organization of your data for both reading and writing. However,
you must know exactly how the file was written.
Reading, writing, and closing files
You can use LotusScript to
read and write files. To create a file, you open and write to a file
that does not yet exist; LotusScript creates
it automatically.