I've got some strange problem with the CSV Reader. When I try to read
data from file, the method get(String arg0) return blank ("") String
instead of expected value.
I do it in following way:
try {
reader = new CsvReader(path);
reader.getHeaders();
while (reader.readRecord()) {
...myField = reader.get("NameOfSomeColumnInMyCSVFile")
}
catch (Exception e) {
e.printStackTrace();
}
And myField is blank - other words, when I would like to get the value
of myField, I get empty string ("")
What is more confusing, I used that library for other csv files and
everything went ok; So i wondered, whether there is some diffirence
between working- and non-working file, but I haven't found any.
Could you suggest me any ideas, what could be wrong?
Bruce Dunwiddie