TTextFile class

Back Up Next

TTextFile class

Header File
    <owl/file.h>

Description
    The TTextFile class encapsulates standard text file.

Base class:
    TBufferedFile

Constructors
TTextFile::TTextFile
    Form 1
        TTextFile();
    Form 2
        TTextFile(TFHandle& handle, bool shouldClose);
    Form 3
        TTextFile(LPCTSTR name, const uint32 mode = ReadOnly|PermReadWrite|OpenExisting|Text);
        Description
            Form 1: Creates a TFile object with a file handle of FileNull.
            Form 2: Creates a TFile object with a file handle of handle.
            Form 3: Creates a TFile object and opens file name with the given attributes. The file is created if it does not exist.
Member Functions
GetString
    Syntax
        LPTSTR  GetString(LPSTR buffer, uint32 size);
    Description
Get line maximum length size, from text file.
WriteString
    Syntax
        bool  WriteString(LPSTR buffer);
    Description
Write string to the file;

Revised: February 09, 2000.


Copyright © 1998-2001 Yura Bidus. All rights reserved.