how do i write to a binary file without it thinking that I'm writing it as a normal file?
ofstream savefile;
savefile.open("DEFAULT.B3D",ios:ut | ios::binary | ios::trunc);
for(int a=0;a<30;a++)
{
for(int b=0;b<30;b++)
{
savefile <<'a';
}
}
savefile.close();
that doesn't seem to work, i think it might be that I'm trying to use the <<, but is there another way to output to the file? (i'm trying to output a matrix to the file, but I used an a to see if it even worked......
savefile << level[a] [b];