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 › readln simple keyboard IO
Page Index Toggle Pages: 1
readln? simple keyboard IO (Read 484 times)
readln? simple keyboard IO
Dec 5th, 2007, 3:00pm
 
Hi

I'm wanting to use Processing with some novice programmers. Printing text to the console is easy enough with println, but I can't find a read/readln equivalent. Am I missing something obvious? I just want to do the kinds of things you'd do with C's scanf or Pascal's Read/Readln.

Cheers

Paul
Re: readln? simple keyboard IO
Reply #1 - Dec 5th, 2007, 3:45pm
 
Hi,

Since Processing's purpose is to have fun with images, animations and interactions, you won't find such built-in methods.

Anyway, you can have a look at these messages :
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1195879626

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1196218427

You will also find useful GUI text controls on the Library page :
http://processing.org/reference/libraries/index.html
Page Index Toggle Pages: 1