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
[EMAIL PROTECTED]
[EMAIL PROTECTED]
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 - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal