Opening File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lumpybanana247
    New Member
    • Apr 2007
    • 134

    Opening File

    there is a program called 010 Editor. using it, you could open a .exe file, copy the HEX code that it gives you, create an empty project and paste that code and save the file and of course, its an exact replica as if you copy and pasted. but my question is: how could i do somthing like this in c++? i mean i know how to convert to hex, its just how could i do that?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    What are you trying to do? Read in a binary file and output it in hex?

    Comment

    • lumpybanana247
      New Member
      • Apr 2007
      • 134

      #3
      yeah, like open NOTEPAD.EXE and get the hex code for it

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        Originally posted by lumpybanana247
        yeah, like open NOTEPAD.EXE and get the hex code for it
        You can do that with almost any decent text editor. Try notepad++ or any IDE like Visual Studio. They will open binary files in hex for you to look at.

        Comment

        Working...