I have a file ie:
I would like to open the file, go directly to, say, line 3 and write something different in that location without disturbing the other lines. The lines can be the same length. I can use the seek function to go to that line, but my book doesn't say what code I need to read or write that line. Do I open the file before using seek? What code do I use to read or write that line?