Adding on text to an existing file

hey,
I’m trying to work out how I can save text to a .txt file that already exists… I can’t work out how to find the end of that file and save the new data there…
any help would be fantastic… cheers