I am currently writting a cgi in python for simple submission form. The site is only a small intranet site, so doesn't require being linked to a database. I would like to know how I go about specifying a file to dump the data in, so that I can then edit it and upload it to the site. I have tried using the tempfile module to create a randomly named file, but this didn't work, as I was unable to locate the file, if it was even generated.

Can someone please help.
Thanks