1,079
edits
(→How to Open a File: Tweak examples (they didn't comply to code formatting conventions, and also needless used 'new')) |
m (→How to Open a File: oops) |
||
Line 24: | Line 24: | ||
Common::File f; | Common::File f; | ||
if (f.open("data/datafile.dat")) { | if (!f.open("data/datafile.dat")) { | ||
// handle failure to find/open file | // handle failure to find/open file | ||
} | } |
edits