Find all files in the current directory and its subdirectories, and move them to the directory specified in the file myfile.txt in the directory mydir.
find ~ -type f -exec mv {} $(cat ~/mydir/myfile.txt) \;