var TF : File; Str :String; If FileExists(FileName) then begin AssignFile(TF,FileName); RESET(TF); While not eof(TF) do begin readln(TF,Str); Memo1.Lines.Add(Str); end; closefile(TF); end else showmessage('This file doesn'+''''+'t exist, please to check it!');
还不是太清楚,不过可否类似这样b : BYTE; begin b := $51; ShowMessage(char($51));
TF : File;
Str :String;
If FileExists(FileName) then
begin
AssignFile(TF,FileName);
RESET(TF);
While not eof(TF) do
begin
readln(TF,Str);
Memo1.Lines.Add(Str);
end;
closefile(TF);
end
else
showmessage('This file doesn'+''''+'t exist, please to check it!');
begin
b := $51;
ShowMessage(char($51));