Read up to nbr characters from an open file or TCP handle. Count comes first, then the handle. Disk advances the file position. TCP is non-blocking and returns “” if nothing is waiting. LOC(#n) is the number of RX bytes for TCP.
INPUT$(nbr, #n)
nbr - maximum characters to read #n - open file or TCP stream
Example:
A$ = INPUT$(LOC(#1), #1)
Source: docs/help/input-dollar.txt inmmcore. On the computer, typeHELP INPUT$.