Hi,
I have this code in my Java program:
String filename = textFile.getText();
try {
CsvReader cust = new CsvReader(filename);
cust.readHeaders();
while (cust.readRecord())
{
String name = cust.get(1);
String street = cust.get(2);
String zip = cust.get(3);
String city = cust.get(4);
System.out.println(name + ":" + street + ":" + zip + ":" + city);
}
cust.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
When I run a debugger on this, it reads the file, but it doesn't print... The string variables are empty!
What could I be missing?