How to delete the contents of a file before writing to it in Rust?

前端 未结 0 921
日久生厌
日久生厌 2021-01-19 05:46

I wrote a bot that performs some network queries once every so often and dumps the latest state into a file stored on disk. This is my code:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题