fpc/docs/sysutex/ex42.pp
1999-05-14 22:02:23 +00:00

12 lines
288 B
ObjectPascal

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