Aspects


vs


Home Page
About Us

Bufferedwriter

Java class for writing text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.

Fileoutputstream

FileOutputStream is a Java class used to write bytes directly to a File or to a FileDescriptor.



Others

Example

For a few bytes passed in just one call probably the bufferedwriter is even worse because it problably later calls fileoutputstream

from question  

In Java, what is the advantage of using BufferedWriter to append to a file?

Again fileoutputstream has a constructor allowing you to append instead of overwriting;the bufferedwriter isn t the problem - it s the way you re constructing the filewriter

from question  

Appending text files using buffered type writer java

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0