COM1100 -- Winter2000 --
Yuhong Yin
13
Steps in using Files
– 4
Steps in
n
Get data from the file
n
The simplest way works just like
cin
with
>>
n
MyInFile >> x >> y >> radius >> R >> G >> B;
n
n
You also can read a single character form a File
with
get
method
n
char ch;
n
MyInFile.get(ch);
n