L lb_1977416 Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-26 #1 怎样用OpenDialog 打开文本文件并显示出来?
天 天与地 Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-26 #2 比较简单。 读打开的文件,显示到Memo里面。要有读取的过程。
J jsxjd Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-26 #3 if opendialog1.execute then if fileexists(opendialog1.filename) then memo1.Lines.LoadFromFile(opendialog1.filename);
if opendialog1.execute then if fileexists(opendialog1.filename) then memo1.Lines.LoadFromFile(opendialog1.filename);
X x_coffee Unregistered / Unconfirmed GUEST, unregistred user! 2002-08-26 #6 opendialog1.execute 打开对话框 var myfile:textfile; begin assignfile(myfile,opendialog1.filename); reset(myfile); 然后用readln方法把文本读出
opendialog1.execute 打开对话框 var myfile:textfile; begin assignfile(myfile,opendialog1.filename); reset(myfile); 然后用readln方法把文本读出