set file to read only csharp
Code Example - set file to read only csharp
File.SetAttributes(path, FileAttributes.ReadOnly);
File.SetAttributes(path, FileAttributes.ReadOnly);