Appendtext not working
<p>So I'm trying to make a program that calculates and saves your BMI into a file.
I tried using <code>appendtext</code> like this.</p>

<pre><code>StreamWriter logboekBMI = new StreamWriter(path + "Logbmi.txt");
logboekBSA.Close();

logboekBMI = File.AppendText(path + "Logbmi.txt");
logboekBMI.WriteLine("BMI: " + bmi.getBMI());
logboekBMI.Close();
</code></pre>

<p>And I read the file to a text box like this: </p>

<pre><code>StreamReader logbmi = new StreamReader(path + "Logbmi.txt");
txtLogboek.Text = logbmi.ReadToEnd();
</code></pre>

<p>It deletes the line that was already in the file and inserts the new one. It never appends.</p>