class Reader < Object
Typical use is to use the
Reader factory function to instantiate an
object of an appropriate derived class based on the file extension of the
auto reader <- Reader(path);
A reader of a single buffer can then be performed with:
Finally, close the file:
|Reader||Create a reader for a file.|
|open||Open a file.|
|read||Read the entire contents of the file.|
|close||Close the file.|
Factory Function Details
Create a reader for a file.
- path: Path of the file.
Returns: the reader.
The file extension of
path is used to determine the precise type of the
returned object. Supported file extension are
Member Function Details
Close the file.
Open a file.
- path : Path of the file.
Read the entire contents of the file.
- buffer: Buffer into which to read.