We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I'm getting a nullPointExeption when trying to loadTable. here is my code.
String twitterFile = "output2.csv";
String twitterDataFile = twitterFile;
ArrayList<Twitter> tweets = new ArrayList();
void setup() {
size(1000, 600, P2D);
smooth();
Table twitterCSV = loadTable(twitterDataFile, "header, csv");
}
Any ideia on what could it be?
thanks a lot
Answers
http://processing.org/reference/loadTable_.html
http://forum.processing.org/two/discussion/5765/like-dictionary
http://forum.processing.org/two/discussion/6668/how-to-convert-a-csv-file-into-arrays-one-1d-and-one-2d
You have a scope problem - you've defined your table in setup () and won't, as it stands, be able to use it outside of there.
But a null pointer on load usually means a missing file, as gotoloop explains.
@GoToLoop. The header was misslocated inside my csv, Thank you!! dummie mistake.
@Koog. I just posted a part of my code. thanks anyway