-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
hey all.
yesterday someone wrote in on the Processing forum inquiring as to why s/he could not load a txt file with loadStrings() in JSMode.
https://forum.processing.org/topic/using-loadstring-on-txt-file-in-javascript-mode#25080000002282863
In the end, what confused this person was that there are differing instructions about the data folder on both the Processing and PJS websites. I'll only handle the Processing website here:
When looking at the following link that is specifically about JSMode, it states you do not need a data folder:
http://processing.org/tutorials/javascript/
It is true that you do not need a data folder when using PJS outside the IDE, and when you run your sketch the data folder is removed and your txt file is moved to the same level as your pde. However, in order for those things to take place, to successfully run a sketch using loadStrings() in JSMode, you do need a data directly.
Maybe clarifying the part about the data directory to include the fact that while PJS does not need a data folder, when using JSMode you do need one?