Im after a way of creating a .txt file through a script, or possible add a line to an existing one.

Any Ideas?