Hello folks,
I’m brand new here, and almost brand new to coding and SC, so hello to everyone, and thanks in advance for any help provided.
here is my code:
x = CSVFileReader.readInterpret("/home/joe/dice_sound/dice_rolls.csv").postcs;
x.postln;
x[1].postln;
Output:
[ [ 1, 5, 3, 6, 2, 2, 1, 4, 5362214 ] ]
-> [ [ 1, 5, 3, 6, 2, 2, 1, 4, 5362214 ] ]
[ [ 1, 5, 3, 6, 2, 2, 1, 4, 5362214 ] ]
-> [ [ 1, 5, 3, 6, 2, 2, 1, 4, 5362214 ] ]
nil
-> nil
-> nil
It seems that there is an extra set of square brackets, which i think is what is stopping me calling the items in the array.
The csv file holds each digit in a separate column with no commas or square brackets. At the moment it only holds these digits, but will eventually hold multiple rows of digits in the exact same format.
What am I doing wrong? Is it something to do with the CSVFileReader?