How can i save text to a specific line on a text document?