fstream fbin(filename, ios::binary | ios::in | ios::out);
if (!fbin) {
cout << "Could not open file " << filename;
return -1;
}
when I type a file name to be created for the binary write I get an exit 255 because the file could not be opened. When I debug and look at the fbin object it says incomplete type. I am using netbeans 6.5 and ios::binary is in like blue color but binary is in black and ios::in is all light blue, and ios::out is light blue but out is in black. Is this example from the book old? Should this code work?