The Put statement behaves differently, depending on the type of file you're using.
Random files: The first two bytes written indicate the length of the string. Then the Put statement writes the number of characters specified by that length. If variableName is not initialized, the Put statement writes a string of length 0.
If variableName is longer than a record, LotusScript generates the "Bad record length" error. If variableName is shorter than a record, the remainder of the record is not cleared.
Binary files: The number of bytes written to the file is equal to the length of the string currently stored in variableName. If variableName is not initialized, no data is written to the file. Note that in binary files, data is written without regard to record length. |