private void CheckFile(string str) { if(!File.Exists(str)) throw new Exception(str + " does not exist!"); }