I\'m trying to write to a text file in memory and then download that file without saving the file to the hard disk. I\'m using the StringWriter to write the con
StringWriter
This is very simple, and the answer can be seen in this Microsoft KB Article: How to write binary files to the browser using ASP.NET and C#