1234
ofstream myfile; myfile.open ("array.txt"); myfile << Data; myfile.close();
123456789
#include <algorithm> #include <iterator> //... { int data[] = { 1, 2, 3 }; ofstream out( "data.txt" ); copy( data, data + 3, ostream_iterator<int>( out, " " ) ); }
1234567
for(int i=0;i<65000;i++){ myfile << Data[i][0]; myfile << " "; myfile << Data[i][1]; myfile << "\n"; } myfile.close();