Write( ) method (FileOutputStream)

This method writes data from the indicated MEMPTR to the file output stream. It returns the total number of bytes written.

Return type: INT64

Access: PUBLIC

Applies to: Progress.IO.FileOutputStream class

Syntax

Write( INPUT source-data AS MEMPTR, INPUT offset AS INT64,
       INPUT length AS INT64 )

Write( INPUT source-data AS MEMPTR )
length
An INT64 value indicating how many bytes the method should read from the MEMPTR. If the length is greater than the number of bytes in the MEMPTR, only the available data is written to the stream, and the method returns that number of bytes.
offset
Indicates which byte of the source-data MEMPTR the method should start with when writing to the current file output stream. The AVM will raise an error if this value is less than 0 or greater than the size of the MEMPTR.
source-data
A MEMPTR variable containing the data the method will write to the output stream.

Notes