Forum: CSV Manager, Topic: Parse into a string array http://www.ricebridge.com/feeds/forums/csvman/4.rss Copyright (c) 2004 Ricebridge Topic Posts Wed Jun 29 13:12:22 UTC 2005 Richard Rodger: Based on your example http://local.ricebridge.com/forum/topic.htm?f=csvman&t=4&s=all#post9 Based on your example data, I think that you need to set the field separator to be a ; character, with the CsvManager.setSeparator(";") method. CSV Manager uses commas by default, as explained in the documentation: http://www.ricebridge.com/products/csvman/api/com/ricebridge/csvman/CsvSpec.html#setSeparator(java.lang.String) The String array fields will than contain values fields[0], fields[1], etc., as you require. Wed, 29 Jun 2005 13:12:22 UTC Ayyappan Chandrasekaran: I tried but the proble http://local.ricebridge.com/forum/topic.htm?f=csvman&t=4&s=all#post8 I tried but the problem is I'am able to parse the csv file only line by line not field by field. I checked with the code sample given in your site package ricebridgecsv; import java.lang.*; import java.io.*; import com.ricebridge.csvman.CsvManager; import java.util.*; public class Main { public static void main(String[] args) { Cover cov = new Cover(); CsvManager cm = new CsvManager(); List csvData = cm.load( "E:/StudienArbeit/csv/Afile.csv" ); for( int line = 0; line < csvData.size(); line++ ) { String[] fields = (String[]) csvData.get(line); System.out.println(fields[0] ); } } And the output I got is FID;TYP;TITEL;REIHE;HILFE;VORBELEGUNG 1.1;text;Questionnaire: Course Evaluation;Title of course;; 1.2;typ1;Questionnaire: Course Evaluation;Type of course;; 1.3;text;Questionnaire: Course Evaluation;;; Could you help me with some code samples to parse each field. Wed, 29 Jun 2005 13:10:24 UTC Richard Rodger: The CsvManager.load(Fi http://local.ricebridge.com/forum/topic.htm?f=csvman&t=4&s=all#post7 The CsvManager.load(File) method returns a List of String[] objects. You can easily convert this into a two dimensional String array. Wed, 29 Jun 2005 11:41:33 UTC Ayyappan Chandrasekaran: Is there any method wh http://local.ricebridge.com/forum/topic.htm?f=csvman&t=4&s=all#post6 Is there any method which parse the csv file in to a string array... for ex. if the csv file looks like FID;TYP;TITEL;REIHE;HILFE;VORBELEGUNG 1.1;text;Questionnaire: Course Evaluation;Title of course;; after parsing it should give parse[0][0]=FID, parse[0][1]=TYP,...... parse[1][0]=1.1, parse[1][0]=text,.... Wed, 29 Jun 2005 11:37:06 UTC