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