mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-07 03:14:30 +02:00
12 lines
288 B
ObjectPascal
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. |