How to store previous user input?
<p>How do I store previous user inputs into a notepad or any file? So that when the program is closed, the results are still available.</p>

<p>For example, if the last 3 user inputs were 1, 0 and 0.5.</p>

<p>I want to store them in notepad or any file as:</p>

<pre><code>    1
    0
   0.5
</code></pre>
