Is there a way to read large text file in parts?
<p>I have a large file(60mb) and I am reading the file into a string and Iam returning that string to another method.</p>

<p>Now when I am reading the file into a string its giving System out of memory exception.</p>

<p>Is there a way to read file in parts and append it to the string?
If not is there a way around this?</p>

<pre><code>static public string Serialize()
{
     string returnValue;
     System.IO.FileInfo file1 = new FileInfo(@"c:\file.txt");
     returnValue = System.IO.File.ReadAllText(file1.ToString());
}
</code></pre>
