Saving/loading external text files

i know you can load them in as variables… but is there anyway SAVE a variable as a text file (overwriting old one as well)

cheers,

Prophet.