不废话,直接上代码,就是这么简单
 public FileStreamResult StreamFileFromDisk()
        {

            // string path = AppDomain.CurrentDomain.BaseDirectory + "uploads/";

            string fileName = "中国学前教育研究会用户需求说明书0203-正式版.txt";
            string str = @"E:\需求\电影.txt";
            return File(new FileStream(str, FileMode.Open), "text/plain", fileName);

        }

  


 
                    
            
                

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-01-16
相关资源
相似解决方案