Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Class TFileOutput

TFileOutput -> TOutput

Instances of TFileOutput represent an output stream associated with a file.

Method Summary
constructor fileName [appendFlag]
         Opens the file for writing.

Method Detail

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.



Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002