Class TFileOutput
TFileOutput -> TOutput
Instances of TFileOutput represent an output stream
associated with a file.
constructor fileName [appendFlag]
Opens the file for writing.
|
|
constructor
TFileOutput constructor fileName [appendFlag]
Opens the file for writing.
- Parameters:
- fileName -
String containing the path name of the file to be opened for writing.
- appendFlag -
Boolean signaling if the file should be opened in append mode.
-
Initializes the internal state and opens fileName for
writing. If the appendFlag is not specified than it is
taken as false. If the file does not exist then it is created with empty
contents. If the file already exists then if appendFlag
is false then the file contents are erased.
The file is opened in buffered mode by default.
If the file identified by fileName could not be opened
for writing then a runtime error will occur. This can happen
if the process has insufficient previleges or if fileName
refers to a nonexisting path.
Report a bug or request new features
© 2002