INPUT$(#handle, items)

This permits the retrieval of a specified number of items from an open file or device using #handle.  If #handle does not refer to an open file or device then an error will be reported.  It can also be used to read a character at a time from the mainwindow.

For most devices (unlike disk files), one item does not refer a single character, but INPUT$( ) may return items more than one character in length.  In most cases, use of INPUT #handle, varName works just as well or better for reading devices.

File input directly to an array.
Just BASIC allows you to input from a file directly into an array. 