A class representing a a structured file that is portable accross CPU architectures.
Overrides from class PObject
Overrides from class PChannel
File manipulation functions
File channel functions
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
Comparison functions
I/O functions
A class representing a a structured file that is portable accross CPU architectures. Essentially this will normalise the end of line character which differs fromplatform to platform.
The PChannel::IsOpen() function may be used after object
construction to determine if the file was successfully opened.
The PChannel::IsOpen() function may be used after object
construction to determine if the file was successfully opened.
PTextFile( OpenMode mode, int opts = ModeDefault )
opts - OpenOptions enum for open operation. PTextFile( const PFilePath & name, OpenMode mode = ReadWrite, int opts = ModeDefault )
mode - Mode in which to open the file.
opts - OpenOptions enum for open operation.
Use the PChannel::GetLastError() function to determine if there was some error other than end of file.
Use the PChannel::GetLastError() function to determine the
failure mode.
BOOL WriteLine( const PString & str )
Alphabetic index HTML hierarchy of classes or Java