public List<Park> getCSVFileDataParks() { if (!File.Exists(fnameParks)) { return null; } myReader = new StreamReader(fnameParks); CSVParser parser = new CSVParser(); parser.setStreamSource(myReader); return (parser.parseParks()); }
public List<Location> getCSVFileData() { if (!File.Exists(fname)) { return null; } myReader = new StreamReader(fname); CSVParser parser = new CSVParser(); parser.setStreamSource(myReader); return (parser.parseLocations()); }