In the following code I get the error \"stream was not writable\":
class Class1 { private static void Main() { FileStream fs = new F
Do not close the StreamReader. Just comment the line below and it will work.
r.Close();