|
-
Sep 10th, 2001, 06:06 PM
#1
Thread Starter
Dazed Member
Writer's write() method? [resolved]
Does FileWriter's write() method inherited for the Writer
abstract class have to be in a loop to execute properly?
or can it just be called once?
If i just call the write() method once i get no output.
fw.write(buffer);
But if i use a loop i get output to a file
for(int i = 0; i <= 50; ++i){
fw.write(buffer);
}
if i flush the FileWriter say like this:
finally{
fw.flush();
fw.close();
}
i still get no output? Any suggestions?
Last edited by Dilenger4; Oct 1st, 2001 at 03:08 PM.
-
Sep 13th, 2001, 02:59 PM
#2
Member
What are you doing in the catch(){} block?
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
|