xargs is used to read standard input.
To read the items in a file, use the -a option.
xargs -a test.txt