Usually you change the buffer in memory, then write the whole buffer to the file after all the changes are made. Don't try changing the file as you change the display.
Reputation Points: 3278
Solved Threads: 890
Posting Sage
Offline 7,717 posts
since May 2006