I need to limit the file size to 1 GB while writing preferably using BufferedWriter.
BufferedWriter
Is it possible using BufferedWriter or I have to use
IIUC, there are various ways to do it.