How to create a 10MB file filled with "000000..." data in golang?
Asked 2013-05-28T16:49:17.253
9
I am intended to use fdatasync in a system like log or diskqueue.
The first thing is to create a 10MB file with "000000..." in file system like ext4.
But I don't know how to do it properly.