0
Clear data inside text file in c++
Hey guys anybody know how to delete data inside text file, line by line..
2 Answers
+ 5
use the "truncate" parameter when opening the file
related to the link below
ofs.open("test.txt", std::ofstream::out | std::ofstream::trunc);
http://www.cplusplus.com/reference/fstream/ofstream/open/
0
Thanks Dude.. đđ