Line Input # statement (LotusScript® Language)

Reads a line from a sequential file into a String or Variant variable.

Syntax

Line Input # fileNumber , varName

Elements

# fileNumber

The number assigned to the file when you opened it. A # sign must precede the file number.

varName

A String or Variant variable to hold the contents of one line of the file.

Usage

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.

When reading a multiline string from a sequential file, use the Input # statement, not the Line Input # statement.

Example