3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ShahanDev
0

If you just want to see the hex values you can download any of a number of freeware hex editors. You can also download the TextPad demo and use it to open an exe file. It will display in hex.

For free hex editors just go to google and search on "free hex editor"

If you need to do it in code I can write you a bit of vbScript or vb.net.

0

Hi!

Here is the vb.net code:

Dim text As String = IO.File.ReadAllText("YouPathOfFile")
        Dim bytearray() As Byte = Encoding.ASCII.GetBytes(text.ToCharArray())
        Dim Hex As String = String.Empty
        For Each b As Byte In bytearray
            Hex &= Convert.ToString(b, 16)
        Next
        System.Diagnostics.Debug.Print(Hex) 'see result in "Output window"

and here is the link for verification of file in form of byte:
http://www.string-functions.com/string-hex.aspx

This link will help you if you will be going wrong.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.