Cgi form to text file

hey does anyone know a basic cgi script for a form so that the text in the form appends the begining of a text file? i am then using that text file as an external file in a flash document to use as a news page.

thanks thanks,

matthew