A
Attaf
Guest
I have one question I could not find any answer. Why when I read an Unicode string as bytes from a file by IO.Stream.Read the byte array contains only character 95? The file written in DOS. CA_CLIPPER dbase III. I am not talking about code-page level, I am talking about (Read bytes only from file before i convert these bytes to string). I am using C# Or VB.Net
This is My Code:
Private Sub Read(dbfPath As String)
Dim buffer As Byte()
buffer = New Byte(30) {}
Using FS As New IO.FileStream(dbfPath, IO.FileMode.Open, IO.FileAccess.Read)
'After Read header , And when i reach to position i want to read
FS.Read(buffer, 0, buffer.Length)
'Here When i check the Buffer ist only character 95 (Quastion mark)
End Using
End Sub
Thanks for any Help.
Continue reading...
This is My Code:
Private Sub Read(dbfPath As String)
Dim buffer As Byte()
buffer = New Byte(30) {}
Using FS As New IO.FileStream(dbfPath, IO.FileMode.Open, IO.FileAccess.Read)
'After Read header , And when i reach to position i want to read
FS.Read(buffer, 0, buffer.Length)
'Here When i check the Buffer ist only character 95 (Quastion mark)
End Using
End Sub
Thanks for any Help.
Continue reading...