Hello,
I am trying to retrieve some information from a php file and the way I am getting the results is just like this:
432
333 99
17 19 22 31 85 76 51 32
9 17 16 5 13 12 14 13
so what I am doing in processing is call String lines[] = p.loadStrings(url); which gives me every line as an element of lines[] array. now what I should do is to use split function to put each element in every line in an array in order to use them later. so something along this way:
// before constructor
int totalPressed[];
int locationPressed[];
int areaOne[];
int areaTwo[];
// I am not even sure if I can do this.
int [][] metArray = {totalPressed, locationPressed, areaOne, areaTwo};
public void parsePHP(String url) {
String lines[] = p.loadStrings(url);
for (int i=0; i < lines.length; i++) {
// I need to find a way to
// push those values into those arrays.
// trying to declare below which doesn't work.
metArray[i][] = int(PApplet.split(lines[i]));
}
}
OF course this is not working
can you tell me what I am missing here?
thanks!
ilteris.