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 › BufferedWriter for RandomAccessFile  
Page Index Toggle Pages: 1
BufferedWriter for RandomAccessFile ?   (Read 321 times)
BufferedWriter for RandomAccessFile ?  
Mar 23rd, 2008, 5:32am
 
I am computing and writing a huge file of integer, using instructions like these:
Code:
//...
String namext="test.int";
ff = new File(namext);
raf = new RandomAccessFile(ff, "rw");
//...
raf.writeInt(123);
//...
raf.close();
//...
But execution is taking a long time and I wonder if using some BufferedWriter would help.
Can I wrap a BufferedWriter around a RandomAccessFile?
How should that be done?
Page Index Toggle Pages: 1