S
shuisheng
Dear All,
I have question on file stream. I'd like the operator << to read and
write a variable in binary mode? For example,
#include <iostream>
int main()
{
ofstream f("output.dat");
double d = 3.1415926;
f << d; // I want d is written in binary mode. But here it is
written formatedly.
return 1;
}
Thanks,
Shuisheng
I have question on file stream. I'd like the operator << to read and
write a variable in binary mode? For example,
#include <iostream>
int main()
{
ofstream f("output.dat");
double d = 3.1415926;
f << d; // I want d is written in binary mode. But here it is
written formatedly.
return 1;
}
Thanks,
Shuisheng