E
ESPN Lover
Here's a quick function to load the entire text file into a string.
private string LoadFile( string file )
{
string contents = "";
using(StreamReader sr = new StreamReader(file))
{
contents = sr.ReadToEnd();
}
return contents;
}
private string LoadFile( string file )
{
string contents = "";
using(StreamReader sr = new StreamReader(file))
{
contents = sr.ReadToEnd();
}
return contents;
}