0

I am trying to write into file huge file of approximately 5GB but not able to write data in a buffer, it still writes out one line at a time.

I have already tried using:

PrintWriter ps = new PrintWriter(new BufferedWriter(new FileWriter(originalPath), (8192 * 6)), false);

I am using JDK 11. Does anyone know fastest way to write into a text file?

0 Answers0