Beginner CSV error
- From: "Rob" <rstupplebeen@xxxxxxxxxxx>
- Date: 30 Jan 2006 12:17:13 -0800
I am trying to read in CSV data. "test.scv"'s contents are:
1,2,3
4,5,6
7,8,9
My code is:
import java.io.*;
import com.Ostermiller.util.*;
class csvtest {
public static void main(String[] args) {
String[][] data = (new CSVParser(new
FileReader("test.csv"))).getAllValues();
System.out.println(data);
}}
The errors are:
unreported exception java.io.FileNotFoundException; must be caught or
declared to be thrown
String[][] data = (new CSVParser(new
FileReader("test.csv"))).getAllValues();
Note: .\com\Ostermiller\util\CSVParser.java uses unchecked or unsafe
operations.
Thank you for your help
Rob
.
- Follow-Ups:
- Re: Beginner CSV error
- From: Roedy Green
- Re: Beginner CSV error
- From: Roedy Green
- Re: Beginner CSV error
- From: Monique Y. Mudama
- Re: Beginner CSV error
- From: opalpa@xxxxxxxxx opalinski from opalpaweb
- Re: Beginner CSV error
- Prev by Date: Re: sorry .09 instead of .08
- Next by Date: Re: sorry .09 instead of .08
- Previous by thread: How to check/validate XML against XSD
- Next by thread: Re: Beginner CSV error
- Index(es):
Relevant Pages
|