Version 2 (modified by 14 years ago) ( diff ) | ,
---|
CFile
CFile 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.
Constructors
- CFile(const char* pszFilename, const char* pszMode);
- CFile(const string& strFilename, const char* pszMode);
- CFile(const char* pszFilename, const string& strMode);
- CFile(const string& strFilename, const string& strMode);
The constructors construct the file object and attempt to open the file.
CFile fileLog("/mnt/fl1/log.txt", "a"); if(fileLog.IsOpen()) { fileLog.Print("Gross %s Tare %s Net %s\r\n", FormatGrossWt(1).c_str(), FormatTareWt(1).c_str(), FormatNetWt(1).c_str()); fileLog.Close(); }
Note:
See TracWiki
for help on using the wiki.