Create file filled with zeros of particular size

前端 未结 0 1983
予麋鹿
予麋鹿 2021-02-04 12:22

I want to create a file of particular size (~512 kb) which is filled with only zeros. From stackoverflow I see 2 options how could I do it:

  • with seek()

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