Bufferedwriter in java
The advantage of using BufferedWriter is that it writes text to a character-output stream, buffering characters so as to provide for the efficient writing (better performance) of single characters, arrays, and strings. Complete example: Write to file using BufferedWriter In this example we have a String mycontent and a file myfile.txt in C drive.