wget -r -l1 --no-parent -A.txt http://www.exampleaddress.com/path/to/text/files/ will allow you to download *.txt from the HTTP directory index provided. The -l1 flag prevents wget from recursively going into subdirectories, and the --no-parent flag prevents wget from travelling up to parent directories.