We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I just started this morning with Processing. I want to be able to take a text file:
Hello world
abc
123
And get this:
["Hello World", "abc", "123"]
How can I do this?
Answers
Have a look at https://processing.org/reference/loadStrings_.html
Kf
Thanks! But now I have another question. This code:
is supposed to set the background color based off of a text file called
colors.txt
. However, the background is always white. Why is this happening?https://forum.Processing.org/two/discussion/15473/readme-how-to-format-code-and-text
https://Processing.org/reference/String_equals_.html
Thanks!
if (colour.equals("blue") )
Not sure but when you want to see multiple different colors from a text file you need to change the for loop and use draw to display them