Thread Previous • Date Previous • Date Next • Thread Next |
Hi,I would like to write some array data from a dolfin program to a normal binary data file with fstream like:
#include <fstream> ofstream fout("visc.dat", ios::binary); fout.write((char *)(&data), sizeof(data));but it does not work. is it not within the namespace of dolfin? error is that ofstream is not defined.
any suggestions how to do this easily? thanks allot, alex
Thread Previous • Date Previous • Date Next • Thread Next |