INPUT(n,fn)

[<<<] [>>>]

This function reads records from an opened file.

Arguments:

The function tries but not necessarily reads n records from the file. To get the actual number of bytes (and not records!) read from the file you can use the function LEN on the result string.

Note that some Basic languages allow the form

a = INPUT(20,#1)

however this extra # is not allowed in ScriptBasic. The character # is an operator in ScriptBasic defined as no-operation and therefore you can use this form. On the other hand operators like # are reserved for the external modules and some external module may redefine this operator. Programs using such modules may end up in trouble when using the format above therefore it is recommended not to use the above format.


[<<<] [>>>]