Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- FILE *file2, *file1;
- char character;
- file1 = fopen("executable1", "rb");
- file2 = fopen("executable2", "wb");
- while(character!=EOF){
- character = fgetc(file1);
- fputc(character, file2);
- }
- fclose(file1);
- fclose(file2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement