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 › saveStrings() blues.
Page Index Toggle Pages: 1
saveStrings() blues. (Read 510 times)
saveStrings() blues.
Apr 25th, 2008, 5:50pm
 
Hello. I am having trouble with the saveStrings() function. I tried the example code, but it keeps giving me this error:

/tmp/build25299.tmp/Temporary_1318_9186.java:2:17:2:35: Semantic Error: No accessible method with signature "splitStrings(java.lang.String)" was found in type "Temporary_1318_9186".

I am running OSX 10.4.11. What I think it is telling me is that I need the expert version of Processing...? If that is so, how do I set it up for my MAC?

Here is the code I'm using, copied directly from the processing website:


//--------------------

String words = "apple bear cat dog";
String list[] = splitStrings(words);

// now write the strings to a file, each on a separate line
saveStrings("nouns.txt", list)

//--------------------


Any help would be much appreciated.

-NoobooN
Re: saveStrings() blues.
Reply #1 - Apr 25th, 2008, 5:56pm
 
There's no such command as splitStrings(), you want split(words,' ');
Re: saveStrings() blues.
Reply #2 - Apr 26th, 2008, 8:53pm
 
sorry, that was an error in the saveStrings() reference.. i've fixed it for the next release (thanks JohnG for the correction).
Page Index Toggle Pages: 1