ex26.pp 248 B

12345678910111213
  1. Program Example26;
  2. { Program to demonstrate the Access function. }
  3. Uses linux;
  4. begin
  5. if Access ('/etc/passwd',W_OK) then
  6. begin
  7. Writeln ('Better check your system.');
  8. Writeln ('I can write to the /etc/passwd file !');
  9. end;
  10. end.