[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Objects' (#rtl) |
Initialize an instance of TBufStream and open the file.
Source position: objects.pp line 343
constructor TBufStream.Init( |
FileName: FNameStr; |
Mode: Word; |
Size: Word |
); |
Init instantiates an instance of TBufStream. The name of the file that contains (or will contain) the data of the stream is given in FileName. The Mode parameter determines whether a new file should be created and what access rights you have on the file. It can be one of the following constants:
The Size parameter determines the size of the buffer that will be created. It should be different from zero.
For an example see TBufStream.Flush.
On error, Status is set to stInitError, and ErrorInfo is set to the dos error code.
|
Instantiate a new instance of TDosStream. |
|
|
Close the file and cleans up the instance. |
No notes exist for this page yet.