How can I clear the content of a file?

后端 未结 6 1749
慢半拍i
慢半拍i 2020-12-02 21:48

I need to clear the contents of a particular file every time the applications starts. How do I do it?

6条回答
  •  眼角桃花
    2020-12-02 22:44

    The simplest way to do this is perhaps deleting the file via your application and creating a new one with the same name... in even simpler way just make your application overwrite it with a new file.

提交回复
热议问题