Sucking in a text file

Simon Faulkner News at Titanic.co.uk
Sat Mar 10 10:14:46 EST 2001


I have a .py cgi script that writes a page to the web and it works!

To allow the users to customise the out put I would like the script to
suck in the first part of the page from a text file and then to spit
this out to the web server.

Is this easy or do I need to open the file and read each byte in turn?


Simon
Simon Faulkner



More information about the Python-list mailing list