binary files

when i try to write binary in visual studio
i write to text file ..
and i cant see nothing even gebris i cant see.
whice files i need to work with ..to read and write binary codes.
Hello darje,

1
2
when i try to write binary in visual studio
i write to text file ..


Of course you do. It is all basically a text file. The binary version just saves some information differently so it is hard to read as a plain text file.

Post you code and I will have a better idea of what may be going wrong or what you could look for.

Andy
you have to put a flag on the file open.

fn.open(file, ios::binary);

then you can use read and write methods. It will be in binary automatically... try writing a simple file with 10 integers for example, then open that with a hex editor to see what you have.

Topic archived. No new replies allowed.