writing and appending to file lots of times takes to long how to improve ?
im using ofstream to writing to file and then appending strings to file
the problem is that im writing to file many times some thing like 5000+ times ( the reason is it writing to file directories and files )
the code open file and writing to it looks like this :
ofstream myfile ("my_log.txt",ios::app);
myfile << c <<".\n";
how can i improve the speed of writing to file ?