string pathDesktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string filePath = pathDesktop + \"\\\\mycsvfile.csv\";
string delimter
Can you please try with StreamWriter class?
If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file.
Instead using
TextWriter writer = File.CreateText(filePath)
try to use
TextWriter writer = new StreamWriter(filePath, true);
If you pass true in constructor it should append text to file.