basic
Example:
Sub main
SetAttr "D:\TESTFILE.txt",1 ' Here 1 represent the Read only mode
End Sub