public void Load(string filename = "file_system.cfg") { try { string json = File.ReadAllText(filename); ConfFile = JsonConvert.DeserializeObject <FSConfFile>(json); } catch (Exception) { throw new ArgumentException("Could not parse configuration file for reading queries from file system. Have you created file_system.conf?"); } }
public FileSystemData() { ConfFile = new FSConfFile(); }