clear data inside text file in c++

前端 未结 4 875
借酒劲吻你
借酒劲吻你 2020-12-14 00:08

I am programming on C++. In my code I create a text file, write data to the file and reading from the file using stream, after I finish the sequence I desire I wish to clear

4条回答
  •  一向
    一向 (楼主)
    2020-12-14 00:40

    Deleting the file will also remove the content. See remove file.

提交回复
热议问题