Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/21/10 10:01:11 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v2  
    22
    33CFile is a C++ class that is provided to simplify 825 file operations. CFile is a wrapper class around the standard C library FILE object. CFile also provides some useful features such as baud rate setting for the 825 serial ports.
     4
     5== Constructors ==
     6
     7 * CFile(const char* pszFilename, const char* pszMode);
     8 * CFile(const string& strFilename, const char* pszMode);
     9 * CFile(const char* pszFilename, const string& strMode);
     10 * CFile(const string& strFilename, const string& strMode);
     11
     12The constructors construct the file object and attempt to open the file.
     13
     14{{{
     15CFile fileLog("/mnt/fl1/log.txt", "a");
     16if(fileLog.IsOpen())
     17{
     18     fileLog.Print("Gross %s Tare %s Net %s\r\n", FormatGrossWt(1).c_str(), FormatTareWt(1).c_str(), FormatNetWt(1).c_str());
     19     fileLog.Close();
     20}
     21}}}