fpc/docs/linuxex/ex26.pp
2004-07-17 22:36:05 +00:00

14 lines
255 B
ObjectPascal

Program Example26;
{ Program to demonstrate the Access function. }
Uses BaseUnix;
begin
if fpAccess ('/etc/passwd',W_OK)=0 then
begin
Writeln ('Better check your system.');
Writeln ('I can write to the /etc/passwd file !');
end;
end.