| [Overview][Constants][Types][Classes][Procedures and functions][Variables] | 
Instantiate a new instance of TDosStream.
Source position: objects.pp line 313
| constructor TDosStream.Init( | 
| FileName: FNameStr; | 
| Mode: Word | 
| ); | 
Init instantiates an instance of TDosStream. 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:
For an example, see TDosStream.Truncate.
On error, Status is set to stInitError, and ErrorInfo is set to the dos error code.
| 
 | Closes the file and cleans up the instance. |