I'm afraid I can't see what's wrong with my code and would very much appreciate any help anyone can give me. I want to be able to write a bunch of lines to a file, go back to the beginning and read line after line in the file until I spot something I want to replace and then replace what's there.
All I'm trying to do right now is be able to read and write to the file in a single program, but it's not happening. Can anyone smarter than me explain why and help me out here?