Beispiel #1
0
 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?");
     }
 }
Beispiel #2
0
 public FileSystemData()
 {
     ConfFile = new FSConfFile();
 }