Some python questions (building cgi website)

paul h paul_appleseed_cast at hotmail.com
Thu Nov 6 12:19:45 CET 2003


hi there,
i'm learning to use python for cgi, and i've hit a few road blocks.
basically, i need to know how to achieve the following things using
python, on linux.
create a new directory, and sub-directory.
so if the user inputs "HELLO", i can create a dir called HELLO, and
then some other dirs in there.

i also need to know how i can write various things into a file.
the following doesnt seem to work for me:
file.write("TEXT HERE")
how can i write plain text into a file?


any help with these questions would be great!
cheers,
paul




More information about the Python-list mailing list