|
-
Jan 16th, 2012, 07:15 PM
#15
Re: [2008] How to open HEX file
 Originally Posted by Sutton2k9
I am using this code that you posted
Code:
Dim builder As New System.Text.StringBuilder
Using reader As IO.FileStream = IO.File.OpenRead("file path here")
Dim length As Long = reader.Length
Do Until reader.Position = length
If reader.Position > 0L Then
builder.Append(" "c)
End If
builder.Append(reader.ReadByte().ToString("X2"))
Loop
End Using
MessageBox.Show(builder.ToString())
How would i now save the file?
As you can see from reading and running the code, 'builder.ToString()' returns a String containing the hex data. A String is a String. How would you usually save a String to a file?
http://www.google.com.au/search?q=sa...ient=firefox-a
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|