Changes between Version 15 and Version 16 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/23/10 09:20:02 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile

    v15 v16  
    146146Reads a text file a line at a time.
    147147{{{
    148 bool ReadLine(std::string& strLine);
     148bool ReadLine(string& strLine);
    149149}}}
    150150
     
    194194==== Remarks ====
    195195
    196 Versions of this fuctions that accept a filename are static so they do not require an CFile object.
     196Versions of this fuctions that accept a filename are static so they do not require a CFile object to be created first.
    197197
    198198==== Examples ====
     
    215215{
    216216   file.Print("This will not exist very long\r\n");
    217    SleepSeconds(1);
    218217   file.Close();
    219    SleepSeconds(1);
     218   SleepSeconds(5);
    220219   file.DeleteFile();
     220}
     221}}}
     222
     223=== IsOpen ===
     224Check whether the file is open
     225{{{
     226bool IsOpen(void)
     227}}}
     228==== Parameters ====
     229
     230This function does not accept any parameters.
     231
     232==== Return Value ====
     233
     234This function returns true if the file is open, false if the file is not open
     235
     236==== Remarks ====
     237
     238==== Example ====
     239
     240{{{
     241CFile file("/tmp/tmpfile", "w");
     242if(file.IsOpen() == false)
     243{
     244   DisplayText(0, 0, "File is not open");
    221245}
    222246}}}