Можем ли мы читать файлы dbisam .dat через vb.net?
Я использую стороннее программное обеспечение, которое использует базу данных dbisam и имеет таблицы с расширением.dat.
Есть ли способ прочитать таблицы dbisam в vb.net?
Мне становится довольно трудно читать dbisam в Visual Basic, есть ли какие-либо советы, пожалуйста, предоставьте свой вклад.
Вот код, который я пробовал, но ничего не работает
Затемнение содержимого как 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