Stream object (ADO version 2.5) ¶
ADO
Stream
object is used to read and write and to process binary data or text streams.
Stream
objects can be obtained in three ways:
By pointing to the URL of an object (usually a file) containing binary or textual data. This object can be a simple document, a
Recordobject representing a structured document, or a folder.By setting the
Streamobject is instantiated. These.Streamobjectcan be used to store data for an application. Associated with the URLStreamorRecorddefault ofStreamdifferent, instantiatedStreamby default, it is not associated with the base source.By opening the connection with
Recordthe default associated with the objectStreamobject. openRecordcan get the same informationas theRecordgets or sets the default stream associated with the Simply open the stream to delete a round trip.
Grammar ¶
objectname.property
objectname.method
Attribute ¶
Attribute | Description |
|---|---|
CharSet | Specifies the character set used to store the Stream. |
EOS | Returns whether the current position is at the end of the stream. |
LineSeparator | Sets or returns the line break used in the text Stream object. |
Mode | Sets or returns the available permissions for modifying data. |
Position | Sets or returns the current position, in bytes, starting from the Stream object. |
Size | Returns the size of an open Stream object. |
State | Returns a value that describes whether Stream is on or off. |
Type | Sets or returns the type of data in the Stream object. |
Method ¶
Method | Description |
|---|---|
| Cancel the right |
| Close |
| Converts a specified number of characters / bits from a |
| Send the contents of the |
| Load the contents of the file |
| Open |
| From a binary |
| From a text |
| Put one |
| Sets the current position to the end of the stream (EOS) |
| Skip a line when reading a text stream. |
| Write binary data to a binary |
| Write character data to a text |