public MapParser(string mapName) { try { this.mapName = mapName; FileStream readStream = new FileStream(Directory.GetCurrentDirectory() + "\\maps\\" + mapName + ".map", FileMode.Open); r = new MapReader(readStream); } catch (FileNotFoundException e) { throw new Exception("map not found!"); } }