|
-
Jan 28th, 2002, 08:20 PM
#1
Thread Starter
Member
File IO [resolved]
Using a BufferedReader and BufferedWriter, is there a way to append to a file rather an overwriting it? Right now I read in the entire file and rewrite it which seems pretty slow.
Last edited by filburt1; Jan 28th, 2002 at 08:41 PM.
-
Jan 28th, 2002, 08:34 PM
#2
Dazed Member
public FileOutputStream(String name, boolean apppend) throws FileNotFoundException
or
public FileWriter(String name, boolean append) throws IOException
-
Jan 28th, 2002, 08:38 PM
#3
Dazed Member
What i don't understand is that Java stress writing "pure Java" which means hard coding of files names should not be done. So then why do they add an append parameter to only the constructors that take a hard coded string as an arguement?
-
Jan 28th, 2002, 08:41 PM
#4
Thread Starter
Member
Java is a funky beast. 
Thanks, Dilenger.
-
Jan 28th, 2002, 08:45 PM
#5
Dazed Member
Buy the way nice web site you have. Great layout, and the content is pretty good too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|