answersLogoWhite

0


Best Answer

A newLine() method is provided, which uses the platform's own notion of line separator as defined by the system property line.separator. Not all platforms use the newline character ('\n') to terminate lines. Calling this method to terminate each output line is therefore preferred to writing a newline character directly, FileWriter doesn't have this feature. ALso BufferedWriter are fast as they write to buffer first before writing to file

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between BufferedWriter and FileWriter in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do i use java to create or write in txt files?

// to create a new file File f = new File("newfile.txt"); f.createNewFile(); // to write a string to a file String str = "This text will appear in newfile.txt\nThis, too."; // create our writer object BufferedWriter out = new BufferedWriter(new FileWriter(f)); // write str to f out.write(str); // remember to flush the buffer and close the writer out.flush(); out.close();


What is difference between java 2 and java 5?

They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.


Major difference between c and java?

Java is object oriented, C is not...


What is the difference between connectivity in java?

kamina


What is difference between connectivity in java?

kamina


What is the main difference between UNIX and JAVA?

Unix is an operating system, Java is a language.


Difference between recordset and resultset in java?

Rowset


What is the difference between JAD and JAR?

JAD-Java Application Description JAR-Java archive


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


What difference between InputStreamReader and DatainputStream in java?

Both are same


WAP to show the difference between a variable and static variable?

difference between constant and static variables in java