private Dictionary <string, string> ReadJSFile(string path) { if (!File.Exists(path)) { throw new FileNotFoundException("Could not find file " + path, path); } var lines = File.ReadAllLines(path).ToList(); var fileToDict = new JsFileToDictionary(lines); return(fileToDict.GetDictionary()); }
private Dictionary<string, string> ReadJSFile(string path) { if (!File.Exists(path)) { throw new FileNotFoundException("Could not find file " + path, path); } var lines = File.ReadAllLines(path).ToList(); var fileToDict = new JsFileToDictionary(lines); return fileToDict.GetDictionary(); }