COM1100 -- Winter2000 --
Yuhong Yin
14
Steps in using Files
– 5
Susing F
n
Write data into the file
n
The simplest way works just like
cout
with
<<
n
MyOutFile << x << y << radius << R << G << B;
n
n
You also can write a single character into a File
with
put
method
n
char ch;
n
MyOutFile.put(ch);
n