how to give read only access to the xml file in c#?
This code will help :-
using System.IO;
FileInfo flInfo = new FileInfo(@"c:\alok.txt"); // load file
flInfo.Attributes = FileAttributes.ReadOnly; // set file attribute
how to give read only access to the xml file in c#?
This code will help :-
using System.IO;
FileInfo flInfo = new FileInfo(@"c:\alok.txt"); // load file
flInfo.Attributes = FileAttributes.ReadOnly; // set file attribute
精彩评论