Open main menu

Difference between revisions of "HOWTO-Open Files"

1 byte added ,  22:28, 23 February 2010
m
(→‎How to Open a File: Tweak examples (they didn't comply to code formatting conventions, and also needless used 'new'))
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
}
}
1,079

edits