Answers for "make a file read only c#"

C#
0

c# make file not read only

System.IO.FileInfo fileInfo = new System.IO.FileInfo(filePath);
fileInfo.IsReadOnly = true/false;
Posted by: Guest on April-21-2021
0

set file to read only C#

File.SetAttributes(path, FileAttributes.ReadOnly);
Posted by: Guest on July-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language