为什么此操作会导致客户端出现空文件?
公共文件结果下载() { MemoryStream 流 = 新的 MemoryStream(); StreamWriter writer = new StreamWriter(stream); FileStreamResult fs = new FileStreamResult(stream, "text/plain"); fs.FileDownloadName = "file.txt"; writer.WriteLine("此文本丢失!!!:("); writer.Flush(); 流。冲洗(); 返回 fs; }