To read data items from a sequential file and assign them to program variables.
INPUT#file number, variable list
file number is the number used when the file was opened for input.
variable list contains the variable names to be assigned to the items in the file.
The data items in the file appear just as they would if data were being typed on the keyboard in response to an INPUT statement.
The variable type must match the type specified by the variable name.
With INPUT#, no question mark is printed, as it is with INPUT.
For numeric values, leading spaces and line feeds are ignored. The first character encountered (not a space or line feed) is assumed to be the start of a number. The number terminates on a space, carriage return, line feed, or comma.
If GW-BASIC is scanning the sequential data file for a string, leading spaces and line feeds are ignored.
If the first character is a double quotation mark ("), the string will consist of all characters read between the first double quotation mark and the second. A quoted string may not contain a double quotation mark as a character. The second double quotation mark always terminates the string.
If the first character of the string is not a double quotation mark, the string terminates on a comma, carriage return, line feed, or after 255 characters have been read.
If end of the file is reached when a numeric or string item is being INPUT, the item is terminated.
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)