How could I change just one line of a text file without having to re-write the whole text file after I've made the changes to that one line.
For example: I have a text file that looks like this:
hello
i am here
you are there
we are everywhere
goodbye
This file has 5 lines. Let's say I want to change line 3 from "you are there" to "you are nowhere".
How can I change line 3 without going through a loop and re-writing each line?