Does someone know how to load Strings to Processing ?
in
Programming Questions
•
5 months ago
I have this code:
String[] data;
String[]stuff=loadStrings("Movies2007.txt");
data = split(stuff[0], ',' );
for (int i = 1; i<data.length; i++)
{
text(data[i],100,100);
}
But when I run it, the words appear all on top of the others and it only appears the names of the movies that are in the first line.
I have a .txt file with movie names separated by commas and I'd like to display that on Processing
There is a printscreen attached to this message where you can see how the movies' names are on the .txt file.
And this is how it appears when I run Processing:
Thank you.
1