using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Newtonsoft.Json; namespace ScriptToolGui { class Config { public string WorkingFolder { get; set; } public static Config Read(string configPath) { if (!File.Exists(configPath)) return null; return JsonConvert.DeserializeObject(File.ReadAllText(configPath)); } } }