1 | initial version |
// write to file:
ofstream o("bla.txt");
double d = 5.5057787190877361e-001;
o << setprecision(15) << fixed << d <<endl;
// read back:
ifstream i("bla.txt");
double d;
i >> d;
2 | No.2 Revision |
#include <fstream>
// write to file:
ofstream o("bla.txt");
double d = 5.5057787190877361e-001;
o << setprecision(15) << fixed << d <<endl;
// read back:
ifstream i("bla.txt");
double d;
i >> d;