2008/10/15

fstream

include
write to file:
ofstream ffile;
read file:
ifstream ffile;
open file:
ffile.open("filename");
check file:
ffile.is_open();
ffile.fail();
if(!ffile){
}
close file:
ffile.clear();
ffile.close();
ios_base:
ios::app
ios::ate
ios::binary
ios::in
ios::out
ffile.open("filename",ios::app | ios::out | ios::binary);