I am trying to open a text file and read through each line. If the line begins with the specified string, I want to change it to read something different. I am able to open it and read each line okay, but I can't figure out how to do the updating. Can somebody please show me how?

Thank you.