COM1100 -- Winter2000 --
Yuhong Yin
8
Steps in using Files
-- 1
§
Declare a file variable
§
ifstream MyInFile;
§
for file input
§
ofstream MyOutFile;
§
for file output
§
fstream MyInOutFile;
§
for both file input and output, not recommended