Basically what I want to do is have a button on ASP.NET page with this C# code behind it:
Code:
FileStream outputFile = new FileStream("outp.txt",FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(outputFile);
sw.Write("hey there");
sw.Close();
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?