shaiko
Advanced Member level 5
Hello,
I have a BIN file called "some_file.bin"
I want to copy the contents of this file to another file named : "some_file_2.bin"
However, while copying I want to skip every 4th byte.
For example :
Contents of "some_file.bin" :
0xA5 0x3 0x11 0x34 0x33 0x12 0x37 0xDE 0xCE 0x0F 0xEE 0xFF 0x77
Contents of "some_file_2.bin" - after copying ( 0x34 , 0xDE and 0xFF weren't copied ) :
0xA5 0x3 0x11 0x33 0x12 0x37 0xCE 0x0F 0xEE 0x77
Can you please post an example of a C++ code that does that ?
I have a BIN file called "some_file.bin"
I want to copy the contents of this file to another file named : "some_file_2.bin"
However, while copying I want to skip every 4th byte.
For example :
Contents of "some_file.bin" :
0xA5 0x3 0x11 0x34 0x33 0x12 0x37 0xDE 0xCE 0x0F 0xEE 0xFF 0x77
Contents of "some_file_2.bin" - after copying ( 0x34 , 0xDE and 0xFF weren't copied ) :
0xA5 0x3 0x11 0x33 0x12 0x37 0xCE 0x0F 0xEE 0x77
Can you please post an example of a C++ code that does that ?