[c++] clear data inside text file in c++