ReadOnly Mode
StreamReader SR; string S = "abc", filename = "", physicalPath =""; string appPath = HttpContext.Current.Request.ApplicationPath; physicalPath = HttpContext.Current.Request.MapPath(appPath); filename = physicalPath + "\\Files\\temp.txt "; File.SetAttributes(filename, FileAttributes.ReadOnly); SR = File.OpenText(filename);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)