Thursday, February 12, 2009

Appending a File with StreamWriter

The StreamWriter class has an Append flag that can be set to append to the file:


Dim outfile As New StreamWriter(filename, True)


The are other overloaded versions with the append flag as well.

No comments: