procedure TForm1.Button3Click(Sender: TObject);
var
f:textfile;
s:string;
begin
s:='';
assignfile(f,'c:\text.txt');
reset(f);
read(f,s);
closefile(f);
showmessage(s);
end;
为什么读出来的内容是空呢 ?
text.txt文档存在 且有超过100行字符。
var
f:textfile;
s:string;
begin
s:='';
assignfile(f,'c:\text.txt');
reset(f);
read(f,s);
closefile(f);
showmessage(s);
end;
为什么读出来的内容是空呢 ?
text.txt文档存在 且有超过100行字符。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货