LineInput or Line Input

<< Click to Display Table of Contents >>

Navigation:  File functions and statements >

LineInput or Line Input

Description

Reads a single line from an open sequential file and assigns it to a String variable.

Syntax

LineInput #filenumber, varname

 

The LineInput # statement syntax has these parts:

 

Part

Type

Description

filenumber

Integer

Required. Any valid file number.

varname

String

Required. Valid String variable name.

Remarks

The LineInput # statement reads from a file one character at a time until it encounters a carriage return (Chr(13)) or carriage return–linefeed (Chr(13) + Chr(10)) sequence.