我试图从分隔的文本文件中读取,但所有内容都在一行和一列中返回.
我的连接字符串是
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
Path.GetDirectoryName(@textBox1txtPath.Text) + ";" +
"Extended Properties=\"text;HDR=YES;IMEX=1;Format=Delimited(|)\"");
Run Code Online (Sandbox Code Playgroud)
我的文本文件是:
ItemNumber|ProductStatus|UPC
0000012|closed|2525
Run Code Online (Sandbox Code Playgroud)
请协助