LOTUSSCRIPT LANGUAGE
Reads a line from a sequential file into a String or Variant variable.
Syntax
Line Input #fileNumber , varName
Elements
#fileNumber
Line Input # reads characters from a sequential file until it encounters a newline character. Line Input # does not read the newline character into the variable.
Note Newline does not mean either chr(10) or chr(13) on all platforms. Newline is the character or sequence of characters that is used to mark the end of a line. This may be chr(10), or chr(13), but it may also be something else, because the actual value of newline depends on the platform.
The Line Input # statement will handle the line end character appropriate for the current platform. It will not necessarily handle line ends properly if the file is written on one platform and read on another.
When reading a multiline string from a sequential file, use the Input # statement, not the Line Input # statement.
Example See Also