Home Page
About Us


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 is a Java class used to write bytes directly to a File or to a FileDescriptor.



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