You can read the title and author from the filenames when you add books using the normal gui.
http://manual.calibre-ebook.com/gui....ename-metadata
That is the easy part. Getting the metadata from inside the text files into the filenames is the slightly less easy part.