How would you write a 1000 value array to a file?
Right now I am using this:
Does anyone know of a simpler way to do this?Code:ifstream outFile("file.dat", ios::out); while(g < 1000){ outFile<<votes[g]<<endl; g=(g+1); } outFile.close();
Thanks, August