string ReadFile (string filename) { string realpath = tparser.MapPath (filename); using (StreamReader sr = new StreamReader (realpath, WebEncoding.FileEncoding)) { string content = sr.ReadToEnd (); return content; } }