- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
if (!string.IsNullOrEmpty(ReadTextFile("BrandsSitemap.xml")))
...
public string ReadTextFile(string fileName)
{
string fullPath = Server.MapPath("~/") + fileName;
StreamReader sr = new StreamReader(fullPath);
return sr.ReadToEnd();
}
Комментарии (3) RSS
Добавить комментарий