Hi All,

i am getting 'System.OutOfMemoryException' while executing code below

StreamReader readerFile = new StreamReader(sReadResultPath, System.Text.Encoding.UTF8);
stringFile= readerFile.ReadToEnd()

file is of big size it is of 250 MB , is there any wayaround to read it quickly, than i have to replace certian strings in it like

stringReplaced = stringFile.Replace("&lt;", "<");
stringReplaced = stringReplaced.Replace("&gt;", ">");

thanks in advance.

best regards,
Mansoor.