Read( ) method (FileInputStream)

This method reads data from a file input stream and stores the information in the specified MEMPTR. It returns the total number of bytes read.

Return type: INT64

Access: PUBLIC

Applies to: Progress.IO.FileInputStream class

Syntax

Read( INPUT target AS MEMPTR, INPUT offset AS INT64,
      INPUT length AS INT64 )

Read( INPUT target AS MEMPTR )
length
Indicates how many bytes the method should read from the current file input stream. The actual number of bytes read may be less than length, depending on the MEMPTR.
offset
Indicates which byte of the target MEMPTR the method should start writing to. The AVM will raise an error if this value is less than 1 or greater than the size of the MEMPTR.
target
A MEMPTR variable that the method uses to store the data it reads.

Notes