Javascript: Replace Last Line In .txt File
<p>I wish to open a file and replace the last line. Not the empty last line, the last last with text, forexample;</p>

<pre><code>Line1
Line2
Line3
</code></pre>

<p>I would like to transform this into</p>

<pre><code>Line1
Line2
Last Line
</code></pre>
