understanding streamreader and internalbuffer?
<p>I have a .txt file that has 3 lines as following:</p>

<p>A50</p>

<p>B25</p>

<p>C25</p>

<p>This is my code:</p>

<pre><code>FileStream fs = new FileStream(@"E:\1.txt", FileMode.Open);
StreamReader sr = new StreamReader(fs);
textBox1.AppendText(sr.ReadLine() + "\r\n");
textBox1.AppendText(fs.Position.ToString());
</code></pre>

<p>now after running the above code,the output will be:</p>

<p>A50</p>

<p>14</p>

<p>My question is why the position value is 14? why it's not 4 as pointer of the stream would point to '\n' character that is at the end of the first line A50?Is this related to internalbuffer?and what's internalbuffer in detail and how it is work with streamreader?</p>

<p>sorry for bad english.</p>
