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;