StreamWriter append?


New member
Mar 21, 2005
Programming Experience
I have a little console app that i'm working on, and i am creating some files on the fly and placing them in a specified directory. This seems to be working ok, except when i recreate the files while the app is open, the files are appended to. If i close out and restart the app, the recreated files will overwrite the old files, and everything is fine.

I guess i just don't understand why the files are appending while the app is open? im sure it has something to do with the StreamWriter buffer, but im using a CreateText to make the file, which i thought should delete any previous versions of the files...?

any help would be greatly appreciated.

Top Bottom