We are about to switch to a new forum software. Until then we have removed the registration on this forum.
For some reason when trying to load a font or a file, even though the files are in the data folder, Processing still gives me an error saying they are not there.
Here's the code, am I doing something wrong?
PFont font;
String[] first = loadStrings("intro.txt");
void setup(){
font = loadFont("HelveticaNeue-Bold-48-48.vlw");
println(first);
}
Answers
See What are setup() and draw()? from the Technical FAQ.
In short (lack of time...), loadXxx() done outside any function is prone to fail because setup() isn't called yet, so Processing doesn't know yet where the data folder is.