I get a runtimeerror with the code below. I could probably solve the problem by not closing the first StreamWriter. Still curios why i get the error though.
StreamWriter logWr2 = new StreamWriter(log);
StreamWriter logWr3 = new StreamWriter(log); //get argumentexception here