How to append text to a file in vb.net

On 15 February 2011, in VB.net, by Himselff

</p>
<p>        Dim monFichier As String = "monPath\log.txt"<br />
        Dim monEcriture As System.IO.StreamWriter</p>
<p>        monEcriture = New System.IO.StreamWriter(monFichier, True)<br />
        monEcriture.WriteLine(Now & " " & monText)</p>
<p>        monEcriture.Close()</p>
<p>

Tagged with:  

Comments are closed.