0
Binary File IO in C++
I want to create a Binary File in C++ to store data and read data from it simultaneously. The file must be in binary formate, not txt file and cannot readable when opened with a text editor. I am using Visual Studio Enterprise latest version. ISO C++ 17.
7 Answers
0
tried but not found.
fstream file;
fstream.open("myfile.txt", ios::in | ios::out | ios::binary )
giving error.
0
I have seprated them by mistake...
I am compiling it.. wait...
ill tell the error
0
https://pasteboard.co/IPBMHLJ.png
I want that if the file already doses not exists it will be created automatically.
and if already there it will be overwritten.