嘿,有没有办法使用 OleDB 或其他方式查询文本文件。只需要能够像下面这样查询它:
Dim connectionString As String
connectionString = "Provider=?????????????????;Data Source=C:\Data\theFile.txt"
connection = New System.Data.OleDb.OleDbConnection(connectionString)
connection.Open()
Dim sqlString As String
sqlString = "SELECT * FROM Categories"
Dim command As New System.Data.OleDb.OleDbCommand(sqlString, connection)
'Retrieve data
reader = command.ExecuteReader()
任何帮助都会很棒!