file type

C# set File Attributes [change file attribute to read only]

C# set File Attributes [change file attribute to read only]

Set File Attributes: While working on a c# console application, I have a requirement to make all the files in read-only mode. In short, I need to change the file attribute and make them all read-only to end user. In C# with File.SetAttributes() we can easily set the attribute of any given file. Before writing […]


by - Satinder singh