Create file with certain size
Is there any method to create a file of desired size when开发者_如何学运维ever I create a file using CreateFile().
Thanks.
SetEndOfFile can be used to extend or truncate a file.
I think (in case you are sitting in front of a *nix box) you can handle this with the default low-lewel write() / fsync() APIs.
Regards, dley
you might use, at the prompt (with admin credentials), "fsutil file createnew" followed by the file name and the desired size (in bytes)
精彩评论