我正在使用使用 dbisam 数据库并具有扩展名为 .dat 的表的第 3 方帐户软件。
有没有办法在 vb.net 中读取 dbisam 表?
我很难在 Visual Basic 中阅读 dbisam,是否有可用的提示指南,请提供您的意见。
这是我尝试过的代码,但没有任何效果
将内容调暗为 New StringBuilder() 将 enc 调暗为 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