OOF2: The Manual
Name
Data File (DataFileOutput) — Send Mesh data to a file.
Synopsis
DataFileOutput
(filename
,mode
,format
)
Details
-
Base class:
OutputDestination
-
Parameters:
filename
- Type: A character string.
mode
- Whether to write or append to the file. Type: An object from the
WriteMode
enumerated class. format
- Format of the file. Type: An object from the
DataFileFormat
enumerated class.
Description
DataFileOutput
is the OutputDestination that the MeshFileOutput uses to send Scheduled Output
data to a file. It is the only type of OutputDestination allowed by MeshFileOutput.
The files written by DataFileOutput
can be
loaded back into OOF2 with the OOF.File.Load.Data command or the --data
startup command line option.
If mode
is w
, the file
will be opened for writing, and any existing file contents will be
overwritten. If mode
is
a
, the file will be opened for appending, and
the new data will appear at the end. Note that if the file is ever
rewound,
all data in the file will be overwritten even if the file had been
opened for appending.