You can do it in two ways. Direct write to a txt file on the web tree or store the text on a blob / long text field of a database.
Personally, I preferr the database route. To me, it is much easier to store the info / data in a data base then text files. With a database, you can manipulate the data much easier as well.
Kai