P
paul h
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
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