matsim-org / matsim-libs

Multi-Agent Transport Simulation
www.matsim.org
477 stars 445 forks source link

read first 5 lines of csv to check delimiter #3271

Closed simei94 closed 4 months ago

simei94 commented 4 months ago

When checking the delimiter by only reading the first csv line the method will fail for csv files with e.g. additional information like an EPSG (which is not in the delimiter separated format). Therefore, from now on the first 5 lines of the file will be read in to secure reading a line with delimiter separated data