我使用2008studio
目前有個TXT檔,我想將TXT檔讀到DATAGRID裡面
請問我該怎麼做?
目前有做出讀到TEXTBOX裡,但是這不是我要的
我先貼上TEXTBOX的程式碼
string path;
path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
TextReader newf= File.OpenText(@"D:\work_day.txt");
textBox1.Text = newf.ReadToEnd();
newf.Close();
麻煩了 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.70.47.36