private ReadContentFromFile ( string fileName ) : string | ||
fileName | string | Name of the file. |
return | string |
private string ReadContentFromFile(string fileName)
{
string text = "";
try
{
StreamReader sReader = File.OpenText(fileName);
text = sReader.ReadToEnd();
sReader.Close();
}
catch(Exception ex)
{
throw ex;
}
return this.SetConformLineBreaks(text);
}