FileDocCategorySizeDatePackage
CSVFile.javaAPI DocExample573Mon Feb 26 17:46:18 GMT 2001None

CSVFile

public class CSVFile extends Object
CSV in action: lines from a file and print.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		String line;
	
		// Construct a new CSV parser.
		CSV csv = new CSV();

		BufferedReader is = new BufferedReader(
			new InputStreamReader(System.in));
		while ((line = is.readLine()) != null) {
			System.out.println("line = `" + line + "'");
			Iterator e = csv.parse(line);
			int i = 0;
			while (e.hasNext()) 
				System.out.println("field[" + i++ + "] = `" +
					e.next() + "'");
		}