Código Delphi [-] SetFileAttributes('C:\archivo.txt', faReadOnly);
SetFileAttributes('C:\archivo.txt', faReadOnly);