Hi, I am looking for a way to replace the first line of a file. Until now, I was using BufferedReader to read the contents of the file into and then going through each line and look for the one I want to replace. This caused some memory issues as a large file with large data would slow things down on the phone. So I moved the line to be the first line of the file and all I want to do is whenever there is a need, replace the contents of first line with something else without caring about the rest of the file.
I have been suggested different ways to do this, StringBuilder, RandomAccessFile but I am looking for a neat example for any of the above solutions or any other solution. Please help Thanks, Abhi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

