X
xieyj
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure WriteL(Mystring:String;Mybool:BOOLEAN);
var F:TextFile;
begin
if fileexists(ExtractFilePath(ParamStr(0))+'history.log') then
begin
AssignFile(F,ExtractFilePath(ParamStr(0))+'history.log');
Reset(F);
if Mybool=true then
begin
Writeln('['+DatetimetoStr(Now)+']');
end
else
begin
WriteLn(F,Pchar('['+DatetimetoStr(Now)+']'));
end;
CloseFile(f);
end;
end;
var F:TextFile;
begin
if fileexists(ExtractFilePath(ParamStr(0))+'history.log') then
begin
AssignFile(F,ExtractFilePath(ParamStr(0))+'history.log');
Reset(F);
if Mybool=true then
begin
Writeln('['+DatetimetoStr(Now)+']');
end
else
begin
WriteLn(F,Pchar('['+DatetimetoStr(Now)+']'));
end;
CloseFile(f);
end;
end;