c#获取文本中的内容

Posted on 2021-11-22 15:33  东方姑娘  阅读(245)  评论(0编辑  收藏  举报

 

string path = HttpContext.Current.Server.MapPath("/文件夹/名称.txt");
string ss = File.ReadAllText(path, Encoding.UTF8);

 

Copyright © 2024 东方姑娘
Powered by .NET 9.0 on Kubernetes