//open file ofstream file; CString name; name.Format("C:\\%s", title); file.open(name, ofstream::out | ofstream::app); //write characters (as append) for(int i=0; i<size; i++) { file << (int) data[i]; if((i!=0) && ((i%100) == 0)) file << std::endl; } //close file file.close();
for(int i=0; i<size; i++) { if((i!=0) && ((i%100) == 0)) { file << std::endl; } file << (int) data[i]; }
if(99==(i%100)) // code
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)