141 if (verbose) cout <<
"write data to \'" << name <<
"\'" << endl;
142 std::ofstream os(name.c_str());
148 cout <<
"nval: " << nval << endl;
149 for (
int i=0; i<nval; i++)
154 cout <<
" val1/2: " << val1 <<
", " << val2 << endl;
157 for (
int i=0; i<nval; i++)
159 double val=(i+1)*15.;
160 cout <<
" val: " << val << endl;
164 long long int llint=1551;
166 std::complex<double> dcplx(4.5,5.4);
167 std::complex<float> scplx(14.5,15.4);
168 fo << llint << lint << dcplx << scplx;
169 cout <<
"extra: " << llint <<
", " << lint <<
", " 170 << dcplx <<
", " << scplx << endl;;
write FORTRAN binary data ,This class writes FORTRAN binary data. FORTRAN binary data is always writt...
void file_magic_write(std::ostream &os, const char *const cmagic, const bool &fortranmode=false)
Write magic number to file. ,.