how to insert data to a txt file from a c++ program