qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
LINE INPUT # Statement Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
LINE INPUT # Statement Details
 
Syntax
  LINE INPUT #filenumber,stringvariable
 
The filenumber is the number used to open the file. The stringvariable is
the variable the line is assigned to.
 
The LINE INPUT # statement reads all characters in the sequential file up to
a carriage return. It then skips over the carriage-return and line-feed
sequence. The next LINE INPUT # reads all characters up to the next
carriage return.
 
LINE INPUT # is especially useful if each line of a data file has been
broken into fields or a text file is being read a line at a time.