Skip to main content

SetReadOnly

STD.File.SetReadOnly( filename , flag )

filenameA null-terminated string containing the logical name of the file.
flagA 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