12345678910
ofstream myfile; myfile.open ("array.txt"); for(int i=0;i<65000;i++){ myfile << Data[i][0]; myfile << " "; myfile << Data[i][1]; myfile << "\n"; } myfile.close();
12345678
{ ifstream fin( "array.txt" ); for( int i = 0; i < 65000; ++i ) { fin >> Data[i][0]; fin >> Data[i][1]; } }
ifstream myfile; for(int i=0;i<65000;i++){ myfile.open ("array.txt"); Data[i][0] = myfile.get(); Data[i + 65000][1] = myfile.get(); } myfile.close();