Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CLineReader Class Reference

An utility class for reading files one line at a time. More...

List of all members.

Public Methods

 ~CLineReader ()
 Destructor.

TPtrC8 & ReadLineL ()
 Reads a line from the input file.


Static Public Methods

CLineReader * NewLC (const TDesC &aFileName, RFs &aFs)
 Creates a new CLineReader object and pushes it to the cleanup stack.


Detailed Description

An utility class for reading files one line at a time.

Handles all related buffering and line feed conversion issues.


Member Function Documentation

CLineReader * CLineReader::NewLC const TDesC &    aFileName,
RFs &    aFs
[static]
 

Creates a new CLineReader object and pushes it to the cleanup stack.

Parameters:
aFileName  The file to read
aFs  The file server session to use
Returns:
A new CLineReader object

TPtrC8 & CLineReader::ReadLineL  
 

Reads a line from the input file.

Empty lines are discarded, and the cr/lf characters are removed. Returns an empty descriptor if called at the end of the file.

Returns:
The line that was read, or an empty descriptor if at EOF.


The documentation for this class was generated from the following file:
Generated on Sun Feb 9 13:01:29 2003 for PuTTY by doxygen1.2.18