Quote Originally Posted by Sutton2k9 View Post
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