J
james
I am trying to use Filestream to read a file ( .DAT) that contains values in HEX that I want to convert to text. I know the
different offset addresses for each portion of the data I am trying to retrieve. But, I am having problems actually reading the
data for the number of Bytes that I need to get from each address.
Here is some of the code I am currently working with:
Dim fsread As FileStream = File.Open(OpenFileDialog1.FileName, FileMode.Open)
Dim add As String
add = fsread.Seek(&HD0, SeekOrigin.Begin)
RichTextBox1.Text = add
Catch ex As Exception
'display error messages if they appear
MessageBox.Show(ex.Message)
End Try
End If
Using the above code, I get the Dec value for D0 ( 208) , instead of reading the contents of the data at that particular
address.
Any ideas on what I am doing wrong?
james
different offset addresses for each portion of the data I am trying to retrieve. But, I am having problems actually reading the
data for the number of Bytes that I need to get from each address.
Here is some of the code I am currently working with:
Dim fsread As FileStream = File.Open(OpenFileDialog1.FileName, FileMode.Open)
Dim add As String
add = fsread.Seek(&HD0, SeekOrigin.Begin)
RichTextBox1.Text = add
Catch ex As Exception
'display error messages if they appear
MessageBox.Show(ex.Message)
End Try
End If
Using the above code, I get the Dec value for D0 ( 208) , instead of reading the contents of the data at that particular
address.
Any ideas on what I am doing wrong?
james