How would you modify a header of any file? ex. mp3, exe, jpeg, etc

All i want to do is modify a header of a file(.exe file). I just want to do if for fun and see what I can do with it. I would like some example code that would be grate. Thanks for the help, if anyone helps me. =)
closed account (Dy7SLyTq)
headers are compiled into the exe. compiling code and then changing the header has no effect on the exe. i would suggest a dll or something
OP probably means the file header. Just use a hex editor.
You got it @naraku9333. I want to change the file header. I know you can use a hex editor but i want to use c++.
Topic archived. No new replies allowed.