commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kasper B. Graversen" <kgraver...@sapiosolutions.co.uk>
Subject problems reading mac files
Date Fri, 17 Nov 2006 10:04:03 GMT
Hi I'm trying to read a mac file (only containing \r as linebreak) using

public String importFile(Reader inputfile) throws IOException {

		// read the file
		final CSVParser csvparser = new CSVParser(inputfile);
		final CSVStrategy strategy = new CSVStrategy(
				',', // Set the ,as delieter
				'"', // Double quotes encapsulate record
				'#', // Comments start with the hash
				true, // Ignore leading whitespace
				true, // Interpret unicode escape sequences
				true); // Ignore empty lines
		csvparser.setStrategy(strategy);
		final String[][] data = csvparser.getAllValues();

but the file (1000 lines) is being read as a single line by the csv 
reader :(  Any ideas or bugfixes in the horizon?


many thanks
  Kasper


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message