C# 读取.conf文件内容

时间:2022-05-27 19:57:57   收藏:0   阅读:41
/// <summary>
/// 读取config文件内容
/// </summary>
/// <param name="Path">文件地址</param>
public void ReadConfigContent(string Path)
{
   FileStream fs1 = new FileStream("1.conf", FileMode.Open);
   StreamReader sr = new StreamReader(fs1,Encoding.GetEncoding("GB2312"));
   string str1 = sr.ReadToEnd();
}

 

原文:https://www.cnblogs.com/siyunianhua/p/15346438.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!