song fen ya very easy

这是个关于装载和保存字符患列表的问题
procedure Tform1.FOrmCreate(........);
var
filename: string;
begin
filename := 'c:\autoexec.bat';
with memo1 do
begin
loadFromFile(filename);
saveTofile(ChangeFileExt(filename,'bak'));
end;
end;
end.
结果出现以下错误:
undeclared identifiler:'loadFromfile'
undeclared identifiler:'saveTofile'

help me
[457 byte] By [wxxwxxwxxwxxwxx-空心菜] at [2007-12-16]
# 1
memo1.lines.loadfromfile(filename);
memo1.lines.savetofile(...);
caim-感谢君儿 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 2
with memo1.lines do
bobfang-匆匆过客 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 3
就是以上说发!
memo1.lines的才有loadfromfile、savetofile方法!!
zou5655-周围 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 4
呵呵,来晚了
memo.lines.loadfromfile(s:string)
9igogo-就爱狗狗 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 5
楼上的对
procedure007-文刀 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 6
memo.lines.loadfromfile(s:string)
alaifu-苦命的程序员 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 7
这么简单呀,
loadFromFile();
saveTofile();
这两个方法都是TStrings的方法,而TMemo是没有这个方法的,所以要用
with memo1.lines do
begin
loadFromFile(filename);
saveTofile(ChangeFileExt(filename,'bak'));
end;
road1977-Delphi.net at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...
# 8
这两个方法是memo1的lines属性的方法
# 9
哦,那本烂书,妈的!害死我
谢了
wxxwxxwxxwxxwxx-空心菜 at 2007-10-22 > top of Msdn China Tech,Delphi,VCL组件开发及应用...