Is there any win32 way to split a file into two files? I mean doing so "in place".
For example, if I have a 1GB file and I want the first 500MB's to be one file and the second 500MB's to be another file, can it be done?
I can easily do this by getting a file handle, copying the first 500MB to a new file, then copying the remaining 500MB to another new file, and finally deleting the initial file, but this is CPU wasteful when files get really large.
Any help appreciated.
--Will Duty
wduty@radicalfringe.com
For example, if I have a 1GB file and I want the first 500MB's to be one file and the second 500MB's to be another file, can it be done?
I can easily do this by getting a file handle, copying the first 500MB to a new file, then copying the remaining 500MB to another new file, and finally deleting the initial file, but this is CPU wasteful when files get really large.
Any help appreciated.
--Will Duty
wduty@radicalfringe.com