Manual:ImportTextFiles.php

Details
importTextFiles.php file is a maintenance script that imports text files to pages on the wiki, optionally preserving the file timestamp. The file name (without extension) is used as the page title, optionally preceded by a given prefix.

Options
If the specified user does not exist, it will be created. If no username has been provided, the edit will be attributed to user "Maintenance script", created if needed.

Examples
This command imports files matching the wildcard  in the current directory to pages starting with. For example,  will be imported to the page. The file's modification timestamp will be used as the revision timestamp. Existing pages will be overwritten.