[fpc-pascal]file or fileexists?
Edvaldo Silva de Almeida Júnior
edvaldo at bookinformatica.com.br
Mon Jan 5 19:44:52 CET 2004
This is the code.
Assign(arq_s,'matriculas.arq');
if (not FileExists('matriculas.arq')) then
Rewrite(arq_s)
else
Append(arq_s);
write(arq_s,reg_matricula);
Close(arq_s);
Which unit is FileExists() in? Do I have to add some unit to have it
working?
Edvaldo Almeida
edvaldo at bookinformatica.com.br
edvaldolalmeida at yahoo.com
Em Seg, 2004-01-05 às 10:14, Peter Vreman escreveu:
> I've been trying to use the function file() to detect if a certain file
> is in the current path, but i've been receiving an error message.
>
> What is the correct funtion? I've already used fileexists(), but it's
> not correct also.
Please post the code you used. FileExists() does not print an error message.
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20040105/f1887421/attachment.html>
More information about the fpc-pascal
mailing list