We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › loadStrings() breaks after adding setup/draw...
Page Index Toggle Pages: 1
loadStrings() breaks after adding setup/draw... (Read 178 times)
loadStrings() breaks after adding setup/draw...
Dec 10th, 2008, 10:43pm
 
Code:
String ar[] = loadStrings("ar.txt"); 



This worked fine in testing, once I added setup() and draw() to my sketch I get an error that ar.txt can not be found.  What gives?
Re: loadStrings() breaks after adding setup/draw..
Reply #1 - Dec 11th, 2008, 12:02am
 
try:

Code:
String[] ar;

void setup()
{
//normal setup stuff...
ar=loadStrings("ar.txt");
}
// etc etc
Page Index Toggle Pages: 1