1. 程式人生 > >加載log文件

加載log文件

proc exist var ssi assign text write lse ring

procedure Jslog(szLogText:string);
var
pMyFile : TextFile;
begin
Assignfile(pMyFile, ‘log.txt‘);
if FileExists(‘log.txt‘) then
Append(pMyFile)
else
ReWrite(pMyFile);
Writeln(pMyFile, szLogText);
CloseFile(pMyFile);
end;

加載log文件