I want to know if really the sentence "BufferedReader" saves the information in buffer because when I execute the following sentences the BufferedReader is empty
why does it happen?
br = new BufferedReader(new FileReader(file));
FileWriter fw = new FileWriter(file);
while ((str = br.readLine())!= null)
Create a BufferedReader doesn't save in memory the information in buffer.
BufferedReader improves the performance of the reader, avoid access to the disk when you are reading.
heather is right
I give you some link and then you read it to inform you