NOTE: This method is now obsolete.
Use FileUtil.ReadFromFile instead.
Reads a text file.
The content of the file.
If the file is not found, an exception is written to the trace file and blank is returned.
string text = MainUtil.ReadFromFile("/robots.txt");
MainUtil Class | Sitecore Namespace