我使用的是第三方帐户软件,该软件使用dbisam数据库,并且扩展名为.dat。
有没有办法在vb.net中阅读dbisam表?
我在Visual Basic中阅读dbisam非常困难,是否有任何提示指南,请提供您的意见。
这是我尝试的代码,但没有任何工作
Dim contents As New StringBuilder() Dim enc As Encoding = New ASCIIEncoding()
'flDatFile is the source of .dat file
Using fStream As FileStream = New FileStream(flDatFile, FileMode.Open, FileAccess.Read)
' The maximum bytes to read.
Dim toRead As Int32 = 1024000 ' 1Kb
' The buffer for read bytes.
Dim buffer(toRead - 1) As Byte
' The number of bytes that have been read.
Dim read As Int32 = fStream.Read(buffer, 0, toRead)
' While there is any data that has been read
Do While read > 0
' Get the string from the byte array.
MsgBox(enc.GetString(buffer, 0, read))
' Read next batch of data into the buffer.
read = fStream.Read(buffer, 0, toRead)
Loop
fStream.Close()
End Using