Read( ) method (MemoryInputStream)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Reads from a MemoryInputStream object into a CHARACTER,
LONGCHAR, or MEMPTR and returns the number of bytes read.
Return type: INT64
Access: PUBLIC
Applies to: Progress.IO.MemoryInputStream class
Syntax
|
- pmData
- Specifies a MEMPTR where the data read from a
MemoryInputStreamobject is written until the MEMPTR is filled or until the end of the stream is reached (whichever comes first). - offset
- Offset, in bytes, to the first byte in the MEMPTR.
- len
- The number of bytes to read from a
MemoryInputStreamobject. - delimiter
- A single character that indicates where a read from a
MemoryInputStreamobject should stop. Note that:- If you specify a string of more than one character, only the first character is used.
- If you specify a null string (
""), a space character is used as the delimiter. - If you specify an alphabetic character, the delimiter is case sensitive.
- lcData
- The name of a LONGCHAR variable where the data read from a
MemoryInputStreamobject is placed. The AVM returns a runtime error if the total number of bytes read, before a delimiter is encountered, cannot fit into a LONGCHAR expression. - cData
- The name of a CHARACTER variable where the data read from a
MemoryInputStreamobject is placed. The AVM returns a runtime error if the total number of bytes read, before a delimiter is encountered, cannot fit into a CHARACTER expression.