unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) btn1: TButton; mmo1: TMemo; procedure btn1Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); private { Private declarations } public { Public declarations } s:TStringlist; end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.btn1Click(Sender: TObject);begin s.LoadFromFile('C:/01.txt');///我先用记事本打开后也能加载成功 mmo1.Text:=s.Text;end;procedure TForm1.FormCreate(Sender: TObject);begins:=TStringlist.Create;end;procedure TForm1.FormDestroy(Sender: TObject);begins.Free;end;end.PS:LZ有空帮我顶顶我的帖子吧 http://www.delphibbs.com/delphibbs/dispq.asp?lid=3998555