CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2000
    Posts
    1

    binary to text format?

    Hi, I need to convert a binary file to a text format so that I can view it in Notepad or other text editor/viewer. anybody knows anything abt this? thx!!!

  2. #2
    Join Date
    May 2001
    Posts
    472
    You have to know the format of the binary data in the file to convert it to text. Otherwise, you can just try opening it in Notepad and checking if there are recongnizable strings.
    Ce n'est que pour vous dire ce que je vous dis.

  3. #3
    Join Date
    Oct 2001
    Location
    Dublin, Eire
    Posts
    880
    If it is a binary file because it contains binary data, then you can't convert it to text data as it will have no meaning. If it is text data, then the only reason I can see it would appear as binary is because it was crypted. Then you need to know how to uncrypt it.

    In case it is binary data and you want to edit it, use an hexadecimal editor tool like HexEdit or WinHex, ...
    Elrond
    A chess genius is a human being who focuses vast, little-understood mental gifts and labors on an ultimately trivial human enterprise.
    -- George Steiner

  4. #4
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    971
    I assume you are just curious to see if you can make any sense
    of the binary code
    It would be like asking me to take a look at a sample DNA and say what that person looks like (assuming its a human beings DNA)

    anyway the old way to do is this
    go to good old DOS
    >debug myfile.exe
    -d (type the 'd' at the - prompt)


    type 'q' for quit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured