Adding text on to an exisitng .txt file

Hey…
Trying to write text to the end of an existing .txt file… I can only overwrite the file each time and am getting frustrated!!! does anyone know how, or where i can find a tutorial??
Chees