SetReadOnly

STD.File.SetReadOnly( lfn, ro )

lfnA null-terminated string containing the logical name of the file.
roA boolean value indicating which way to set the read-only attribute of the filename.

The SetReadOnly function toggles the read-only attribute of the filename. If the flag is TRUE, read-only is set on.

Example:

A := STD.File.SetReadOnly('Fred',TRUE);
 //set read only flag on