Bases: object
A File represents a data file for reading and writing objects. Unless specified explicitly, the format is determined by the file name suffix. A list of objects that can be read/written to file can be found in GenericFile.h. Compatible file formats include:
- Binary (.bin)
- RAW (.raw)
- SVG (.svg)
- XD3 (.xd3)
- XDMF (.xdmf)
- XML (.xml)
- XYZ (.xyz)
- VTK (.pvd)
Overloaded versions
File(filename, encoding=”ascii”)
Create a file with given name
Name of file.
Optional argument specifying encoding, ASCII is default.
Note
No example code available for this function.
File(comm, filename, encoding=”ascii”)
Create a file with given name with MPI communicator
The MPI communicator.
Name of file.
Optional argument specifying encoding, ascii is default.
Note
No example code available for this function.
File(filename, type, encoding=”ascii”)
Create a file with given name and type (format)
Name of file.
File format.
Optional argument specifying encoding, ascii is default.
Note
No example code available for this function.
File(comm, filename, type, encoding=”ascii”)
Create a file with given name and type (format) with MPI communicator
The MPI communicator.
Name of file.
File format.
Optional argument specifying encoding, ascii is default.
Note
No example code available for this function.
File(outstream)
Create an outfile object writing to stream
The stream.
Check if file exists
The membership flag