我将尝试读取分隔文本文件,但所有数据都会返回为一个行和一列。
我的连接字符串是:
我的连接字符串是:
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(|)\"");
我的文本文件内容如下:
ItemNumber|ProductStatus|UPC
0000012|closed|2525
Please assist