I need to open a file and both read and write to it. It's a CSV file that I need to look through to see if a line matches the one I need to add and then write the changes to that line. I can open a file to read or to write but I don't know how to do both.