Siebel VB Language Reference > VB Language Reference >

Input Function

This standard VB function returns a string containing the characters read from a file.


Input[$](number, [#]filenumber)



An integer representing the number of characters (bytes) to read from the file


The number identifying the open file to use


The data read from the file, as a string.


The file pointer is advanced the number of characters read. Unlike the Input statement, the Input function returns every character it reads, including carriage returns, line feeds, and leading spaces.

The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function returns a variant of vartype 8 (string).

The input buffer can hold a maximum of 32 K characters. Be aware of this limit when attempting to pass in large amounts of data.

See Also

Get Statement
Input Statement
Line Input Statement
Open Statement
Write Statement

Siebel VB Language Reference