STD.File.SetReadOnly( lfn, ro )
| lfn | A null-terminated string containing the logical name of the file. |
| ro | A 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