DelftIO Streams Delphi Interface

The stream object

Enumerations

type    
TMode mRead, mWrite, mReadWrite Indicates the access type
TStreamType stAscii, stBinary Indicates the data storage structure

The stream object

constructor Create (Identification : string; Mode : TMode; StreamType : TStreamType);

This constructor creates a stream object, which is not synchronised.

arguments    
String Identification The string identifying the stream. Depending on the stream type, this value must meet the following conditions:
stAscii, stBinary: The (full) name of the file, whcih stores the values
Mode TMode The access mode of the data
StreamType TStreamType The implemented storage type
result    
TStream   The stream object
exception    
EDelftIOError   An exception is raised if the stream could not be opened.

constructor CreateSynced (Identification : string; Mode : TMode; StreamType : TStreamType);

This constructor creates a stream object, which is synchronised.

arguments    
String Identification The string identifying the stream. Depending on the stream type, this value must meet the following conditions:
stAscii, stBinary: The (full) name of the file, whcih stores the values
Mode TMode The access mode of the data
StreamType TStreamType The implemented storage type
result    
TStream   Stream object
exception    
EDelftIOError   An exception is raised if the stream could not be opened.

destructor Destroy; override;

The destructor closes the stream and frees the allocated memory of the stream object.