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 › parsing text file with braces in it
Page Index Toggle Pages: 1
parsing text file with braces in it (Read 844 times)
parsing text file with braces in it
Apr 28th, 2010, 2:20pm
 
Hi all,

I'm parsing a CSV using a modification of the code on p. 301 of Visualizing Data.  My data set includes curly braces.

Is there an easy way (a backslash combo or something) to handle braces in the string array I built with loadStrings so processing doesn't interpret them as part of the code structure?

Many thanks,
James

Re: parsing text file with braces in it
Reply #1 - Apr 29th, 2010, 2:08am
 
I don't understand your question.
Data is data, strings are not code, code is compiled in a special process, not interpreted, so you should not be concerned by this.
If you haven't yet, just try it.
If you have real trouble with these chars, show some code.
Re: parsing text file with braces in it
Reply #2 - Apr 30th, 2010, 4:28am
 
Jbb,

Are you getting an error message at all?
Page Index Toggle Pages: 1