Get Characters From File Method

The Get Characters From File method returns a string that contains the characters that it reads from a file. It advances the file pointer according to the number of characters it reads. Unlike the Parse File Contents method, the Get Characters From File method returns every character it reads, including carriage returns, line feeds, and leading spaces.

The input buffer can hold a maximum of 32K characters. If the Get Characters From File method must get an amount of data that exceeds this maximum, then you must call it multiple times, processing 32K characters each time you call it.

Format

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

For information about the dollar sign, see Usage of the Dollar Sign.

The following table describes the arguments that you can use with this method.

Argument Description

number

An integer that identifies the number of bytes to read from the file.

filenumber

A number that identifies the open file to use.