写入:

  StreamWriter s = new StreamWriter(address + "\\Menu.ini", true);
            s.WriteLine("这里是具体的内容");//写入INI文件
            s.Flush();
            s.Close();

读取:

  StreamReader sr = new StreamReader(address + "\\Menu.ini");
            string[] arrstr = sr.ReadToEnd().Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-03-04
  • 2021-07-30
  • 2021-09-13
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-09-25
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案