ex42.pp 288 B

123456789101112
  1. Program Example42;
  2. { This program demonstrates the FileSetAttr function }
  3. Uses sysutils;
  4. Begin
  5. If FileSetAttr ('ex40.pp',faReadOnly or faHidden)=0 then
  6. Writeln ('Successfully made file hidden and read-only.')
  7. else
  8. Writeln ('Coulnd''t make file hidden and read-only.');
  9. End.