作者kevin888 (kevin)
看板C_Sharp
标题[问题] 将TXT档读取至DATAGRID
时间Thu Jun 9 14:26:32 2011
我使用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