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 & HelpPrograms › saving an int[] to file
Page Index Toggle Pages: 1
saving an int[] to file (Read 931 times)
saving an int[] to file
Sep 23rd, 2009, 4:50pm
 
whats the best method?
saveBytes() isnt working for me because:
- i cant cast from int[] to byte[]
- i can't use the append() method with byte[]
Re: saving an int[] to file
Reply #1 - Sep 23rd, 2009, 6:02pm
 
http://processing.org/reference/writer_.html

or

http://processing.org/reference/PrintWriter.html
Re: saving an int[] to file
Reply #2 - Sep 24th, 2009, 3:33am
 
Cedric, the writer() reference page is really old (and the example is incorrect!): "Reference for Processing (BETA) version 116+"
I wonder how you found it (and why it is still online! perhaps because it is linked from the forum...)
But the PrintWriter page is accurate/up to date, so that's the one to use.
Re: saving an int[] to file
Reply #3 - Sep 24th, 2009, 4:24am
 
oh ok, i just had in mind there was Printwriter and writer so I searched for both. Sorry for that. Anyway makedo hope printwriter helped you.
Page Index Toggle Pages: 1