[android-developers] Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required!

2010-05-06 Thread Abhi
Hi The above error occurs when I do the following. I have a text file with multiple lines of data. Within my application I come across the need to replace a line from the file with a new one. I am using BufferedReader with a fixed size (50k) to read the file into as below: FileReader input_redo

Re: [android-developers] Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required!

2010-05-06 Thread Al
This isn't an error, it's just a message to inform you it is better to specify the size of the buffer you need in the constructor. Abhi wrote: String line = , oldtext = ; while((line = reader.readLine()) != null) { oldtext += line + \r\n; }