Open and add to textfile using a StreamReader and StreamWriter objects
Posted on 2013-06-18
I have a routine to create a text file. I use the streamwriter to create the file and write the first line of code.
Dim fileWriter As New StreamWriter(mFileName2, False)
now the problem is, I close the newly created file and process more, than I need to add another line to the file. The code I cant figure out will open the newly created file and add a line to the end of the file, then close it and process and repeat. Not sure how to open new file, read it then add to it.
thanks in advance