public static void Save(string path, string file, out string objectInfo) { string currentPath = Path.Combine(path, file); FileLog.ClearJsonFile(currentPath); objectInfo = JsonConvert.SerializeObject(_objectInfo, Formatting.Indented); File.AppendAllText(currentPath, objectInfo); }
public static void Save(string path, string objectInfo) { FileLog.ClearJsonFile(path); objectInfo = JsonConvert.SerializeObject(_objectInfo, Formatting.Indented); File.AppendAllText(path, objectInfo); }