On Thu, Mar 04, 2004 at 11:39:46PM -0500, r.w.h wrote: > 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"
Try: FileExists cheers James -- - -ShortCircuit Services -URL: http://www.shortcircuit.net.au -WIKI: http://wiki.shortcircuit.net.au - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal