var stream = new MemoryStream(); using (StreamWriter writer = new StreamWriter(stream)) { writer.WriteLine("__your text 1__"); writer.WriteLine("__your text 2__"); } return File(stream, "text/plain");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)