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() not working
Page Index Toggle Pages: 1
loadStrings() not working (Read 571 times)
loadStrings() not working
Aug 18th, 2009, 10:25pm
 
I've got a strange problem.. and my bet is it's a file path thing...

I've got a text file that i've put into my sketch's data folder.
When I pass loadStrings() the full system file path it loads just fine,
but when I just pass the name of the file (data.txt), I get an error saying that the file can't be found...

I've got sketches in other places on my machine that work without the full file path. (examples from learningprocessing.com)

Any ideas?
- Loren
Re: loadStrings() not working
Reply #1 - Aug 19th, 2009, 12:59am
 
loren wrote on Aug 18th, 2009, 10:25pm:
Any ideas
No...  Sad
As you stated, it should work. Perhaps provide more information What system do you use

PS.: Please, delete the two other threads you accidentally created. Smiley Thanks.
Re: loadStrings() not working
Reply #2 - Aug 19th, 2009, 11:01pm
 
Where is "data.txt" stored?
If it isn't already, try putting the file in your sketch's data folder.
Page Index Toggle Pages: 1