TFileText Class Reference

class TFileText

Reads and writes single lines of text to or from a Unicode file.

Public Member Functions
TFileText()
IMPORT_C TIntRead(TDes &)
IMPORT_C TIntSeek(TSeek)
IMPORT_C voidSet(RFile &)
IMPORT_C TIntWrite(const TDesC &)
Private Member Functions
TInt CheckForTerminator(TBool &)
TInt FillBuffer()
voidNextRecord()
Private Member Enumerations
enumTFileState { EStartOfFile, ENormal, EReverse }
Private Attributes
const TText *iEnd
RFile iFile
const TText *iNext
TBuf8< 0x100 >iReadBuf
TFileState iState

Constructor & Destructor Documentation

TFileText()

IMPORT_CTFileText()

Member Functions Documentation

CheckForTerminator(TBool &)

TInt CheckForTerminator(TBool &anAnswer)[private]

Parameters

TBool & anAnswer

FillBuffer()

TInt FillBuffer()[private]

NextRecord()

voidNextRecord()[private]

Read(TDes &)

IMPORT_C TIntRead(TDes &aDes)

Parameters

TDes & aDes

Seek(TSeek)

IMPORT_C TIntSeek(TSeekaMode)

Parameters

TSeek aMode

Set(RFile &)

IMPORT_C voidSet(RFile &aFile)

Parameters

RFile & aFile

Write(const TDesC &)

IMPORT_C TIntWrite(const TDesC &aDes)

Parameters

const TDesC & aDes

Member Enumerations Documentation

Enum TFileState

Enumerators

EStartOfFile
ENormal
EReverse

Member Data Documentation

const TText * iEnd

const TText *iEnd[private]

RFile iFile

RFile iFile[private]

const TText * iNext

const TText *iNext[private]

TBuf8< 0x100 > iReadBuf

TBuf8< 0x100 >iReadBuf[private]

TFileState iState

TFileState iState[private]