I dont know why it isn't working but ths is where it fails:
outputFile = new StreamWriter(path + @"\conn.txt", append: false);
outputFile.Write(connections);
outputFile.Close();
I would like any help. I am stuck hier for quiet some time.
You wrote this:
outputFile = new StreamWriter(path + @"\conn.txt", append: false);
but I recommend to you to try this:
outputFile = new StreamWriter(path + @"\conn.txt");
witheout the "append: false" part.