hello i'm trying to figure out the difference between opening a file like:
fstream *fileName*("FILE.dat",ios::binary);
or
fstream *fileName*("FILE.dat",ios::out);
or
fstream *fileName*("FILE.dat",ios::binary | ios::out);
i found that all of these forms are identical,i.e. in all cases ,the same output on the file is produced using either fileName<< or fileName.write()
so please tell me what is the real difference between them, i'm really confused!
THANKS