python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to write data in binary form to a file using extract and insert operators in a stream?
Opening a file with fstream:
std::fstream fileStream(obj.path, std::ios::binary | std::ios::in | std::ios::out);
Next, I write data to the file:
fileStream << this->m_path;
fileStream <&l...
Александр Климук
Votes: 0
Answers: 0
Corrupting the heap while writing an object to a binary file
I have this class with a constructor and destructor
class Monster
{
char* nume;
double hp;
float* dmgAbilitati;
int nrAbilitati;
public:
Monster(const char* nume, double hp, int ...
BastenKo
Votes: 0
Answers: 1
Modes in fstream referring to two different sets ios and fstream for the same thing(in my opinion)
What is the difference between these two lines in file management in C++?
fstream fin("project.csv",fstream::in);
fstream fin("project.csv",ios::in);
Ayush Balodi
Votes: 0
Answers: 1