一、C#简单读写


    using System.IO;  

     static string configFileName = "config.json";
     //不存在就直接新建文件夹
public static void WriteConfig(string content) { File.WriteAllText(configFileName, content); } public static string ReadConfig() { if (File.Exists(configFileName)) return File.ReadAllText(configFileName); return ""; }
C