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
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
Appending text files using buffered type writer java