Tag Archives: loading text

Loading text files

Making my way through the Loading text files from the hard drive recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe, I learned how to use the loadStrings() function to load a text file from my hard drive into the String array. I also learned how to loop through the array in the draw() function and then use the number of characters in each line of text to calculate the diameter for the ellipse to be drawn.