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 & HelpOther Libraries › textfile input & pdf output questions
Page Index Toggle Pages: 1
textfile input & pdf output questions (Read 1071 times)
textfile input & pdf output questions
Jan 12th, 2007, 4:52am
 
Hi,

I'm pretty newbee at all this so I have some basic questions.

Is it possible to let processing read a textfile as input?

And if I only want the 60th frame printed with the pdf output, how do I do that?

Re: textfile input & pdf output questions
Reply #1 - Jan 12th, 2007, 8:58am
 
For textfile reading use loadString: http://processing.org/reference/loadStrings_.html

To save the 60th frame use :
Code:

if(frameCount==60){
beginRecord(PDF, "frame-####.pdf");
// draw something
endRecord();
}
Re: textfile input & pdf output questions
Reply #2 - Jan 12th, 2007, 11:30am
 
will try that.

thanks for the quick reply!
Re: textfile input & pdf output questions
Reply #3 - Jan 16th, 2007, 3:14pm
 
I have a fairly similar query, is it possible, and if so how, to open/display a pdf file in processing?
Re: textfile input & pdf output questions
Reply #4 - Jan 16th, 2007, 3:42pm
 
Unfortunately I think processing can only save PDFs, not read them.
Re: textfile input & pdf output questions
Reply #5 - Jan 16th, 2007, 6:01pm
 
Oh well,
Thanks for the reply though
Page Index Toggle Pages: 1