technically, you could make a 2D array (grid, see tutorials) of float, because you have
- a lot of lines and
- each of them contains several (different numbers of!) floats.
Remark
I looked at your csv and the 2nd line is VERY long.
You posted only 2 lines.
Here is my Sketch
Here is my Sketch. It’s like in the description above.
It splits each line (all lines) and shows each float “zahl” within the line.
Chrisir
//
String [] lines;
void setup() {
size (800, 600);
lines = loadStrings("numbers.csv");
println("length is "
+lines.length);
}
void draw() {
// when opening window background is black
background(0);
}
void mousePressed() {
// when mousePressed
// iterate over Array
for (String n : lines) {
// split line
String[] thisLine = n.split (",");
// loop over line
for (String n2 : thisLine) {
// convert to float
float zahl = float(n2);
print(zahl);
print(" ");
}//for
println("\n\n");
} //for
//
} //func
//