Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : Write( ) method (OutputStream)
 

Write( ) method (OutputStream)

This method writes data from the indicated inputs to the output stream. It returns the total number of characters written for CHARACTER and LONGCHAR data inputs, or the total number of bytes written for a MEMPTR input.
Return type: INT64
Access: PUBLIC
Applies to: Progress.IO.OutputStream class

Syntax

ABSTRACT Write( INPUT source-data AS CHARACTER )

ABSTRACT Write( INPUT source-data AS LONGCHAR )

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

Write( INPUT source-data AS MEMPTR )
length
Indicates how many bytes of the source-data MEMPTR the method should write to the current output stream.
offset
Indicates which byte of the source-data MEMPTR the method should start with when writing to the current output stream.
source-data
A CHARACTER, LONGCHAR, or MEMPTR variable containing the data the method will write to the output stream.

Notes

*All of the overloads of this method are defined as abstract except for Write( INPUT target AS MEMPTR ). The behavior described for the parameters of the abstract methods are provided as guidelines.
*If the size of a MEMPTR was allocated outside of the AVM (in a Windows DLL or UNIX shared library, for example), you must use the SET-SIZE statement to initialize the MEMPTR before calling the Write( ) method.