System.IO.File & StreamWriter
Posted on 2005-05-10
Ok, I am looking to delete an existing file, and then open a stream writer to append text to the file over the duration of the programs run.
I am using File.Delete in my sub new to delete the file
then with a public delcared streamwriter
i am using
streamw = file.appendtext(path)
but it tells me the file does not exist, along with File.CreateText, when I use File.Create(path) before the streamw, the streamw line errors telling me the file is already in use, any ideas?