I want to read things from a file, and then, overwrite it later a the same line. Is there an easy way to go to the same location it was before to overwrite the information ? (getting a line number or something like that)

thanks for any suggestions