Changes between Version 15 and Version 16 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile
- Timestamp:
- 08/23/10 09:20:02 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile
v15 v16 146 146 Reads a text file a line at a time. 147 147 {{{ 148 bool ReadLine(st d::string& strLine);148 bool ReadLine(string& strLine); 149 149 }}} 150 150 … … 194 194 ==== Remarks ==== 195 195 196 Versions of this fuctions that accept a filename are static so they do not require a n CFile object.196 Versions of this fuctions that accept a filename are static so they do not require a CFile object to be created first. 197 197 198 198 ==== Examples ==== … … 215 215 { 216 216 file.Print("This will not exist very long\r\n"); 217 SleepSeconds(1);218 217 file.Close(); 219 SleepSeconds( 1);218 SleepSeconds(5); 220 219 file.DeleteFile(); 220 } 221 }}} 222 223 === IsOpen === 224 Check whether the file is open 225 {{{ 226 bool IsOpen(void) 227 }}} 228 ==== Parameters ==== 229 230 This function does not accept any parameters. 231 232 ==== Return Value ==== 233 234 This function returns true if the file is open, false if the file is not open 235 236 ==== Remarks ==== 237 238 ==== Example ==== 239 240 {{{ 241 CFile file("/tmp/tmpfile", "w"); 242 if(file.IsOpen() == false) 243 { 244 DisplayText(0, 0, "File is not open"); 221 245 } 222 246 }}}