http://codex.wordpress.org/Function_Reference/wp_insert_post
I believe this page from the Wordpress documentation will be of great use to the OP (it was for me):
Code:http://codex.wordpress.org/Function_Reference/wp_insert_post
It explains in detail how you can publish a post on your blog with post title, post content, and all other fields as you like. You just have to set those title, content, etc variables by opening your .txt file(s).
And how do you do that? Sorry if that pisses you off. Newb here.
http://www.php.net/manual/en/function.file-get-contents.php
$contents = file_get_contents("yourfile.txt");