I typically open a file for writing like this:
Public stLog As Stream
Public swLog As StreamWriter
........
stLog = File.Open("c:\temp\Errors.log", FileMode.Append)
swLog = New StreamWriter(stLog)
But, what if I didn't know until runtime how many output files I needed to
open?
For example, what if there was a listbox with a list of filenames that need
to be opened for output. How would I create and set the variables to
initialized stream and streamwriter classes?
Thanks for any help!
Mark