BufferedWriter to write to file
===

I am reading a file using BufferedReader in java.  Here are the sequence of operations that I am trying to do as reading the file

 1. Keep reading up to certain length of characters in the file
 2. Once it reads up to the length, do some manipuation on the read string
 3. Write the read string to a temp file
 4. Reset all the counters (ex. counter of the length)
 5. Go back #1 and do this again for rest of file

What I am trying to figure out is #3.  I want to append to temp file as I am writing to file using BufferedWriter.  I know there is append() but, that looks like it write to new line.  However, I want to write to next cursor each time.  Basically, i want to preserve the format of the original file.  Make a exact same file except some value being changed.

I hope this make sense.

thanks.    
    

 
    