Basically what I want to do is have a button on ASP.NET page with this C# code behind it:
FileStream outputFile = new FileStream("outp.txt",FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(outputFile);
In C# this code writes the text to a file, but when I put this code in ASP.NET (using C#) it does not work. I must be missing a step, can someone help?