[fpc-pascal]quick question

r.w.h rwh at krock.homeunix.org
Fri Mar 5 05:39:46 CET 2004


begin
if exists ('bot.log')
then begin
assign(ftb,'bot.log');
append(ftb);
writeln(ftb,'bot log created'); // find away to enter time , date
close(ftb);
end
else
begin
assign(ftb,'bot.log');
reset(ftb);
writeln(ftb,'the botlog was created');
close(ftb);
end;
end;

whats wrong with the code.
i get the following error on compile.
botlog.pp(25,4) Error: Identifier not found "exists"

Rob Harris





More information about the fpc-pascal mailing list