Here is my problem:
I have a file with raw data that is 18304 bytes. It is raw, no file extension. I need to split my file into smaller 768-byte files. This means I should end up with 71 files that are 768 bytes, and one file that is 384 bytes.
Now, obviously, I sure as hell don’t want to open up my file in Notepad or Hex Workshop, and cut and paste data into new files 72 times. I’d get carpel-tunnel syndrome and probably go insane.
I need to write a C++ program that will do this for me.
The problem is it’s been years since I’ve taken a C++ course and I forgot a lot, and I mean a lot.
How should my code look like? Can someone explain this to me?
Also, where can I download a good free C++ compiler program? I lost my Microsoft Visual C++ installation CDs years ago.
Any help would be greatly appreciated, as I sure as Hell don’t want to cut, paste, and save files over and over again 72 times.
I have a file with raw data that is 18304 bytes. It is raw, no file extension. I need to split my file into smaller 768-byte files. This means I should end up with 71 files that are 768 bytes, and one file that is 384 bytes.
Now, obviously, I sure as hell don’t want to open up my file in Notepad or Hex Workshop, and cut and paste data into new files 72 times. I’d get carpel-tunnel syndrome and probably go insane.
I need to write a C++ program that will do this for me.
The problem is it’s been years since I’ve taken a C++ course and I forgot a lot, and I mean a lot.
How should my code look like? Can someone explain this to me?
Also, where can I download a good free C++ compiler program? I lost my Microsoft Visual C++ installation CDs years ago.
Any help would be greatly appreciated, as I sure as Hell don’t want to cut, paste, and save files over and over again 72 times.