i know how to read from a ceratin line from a file, but how do u save or overwrite a line in a file?

please help