to read a text file you can try to use the java action StringFromFile from the community common module.
The complex part is to download the file in this directory, not sure if this a good things to do it that way.
But you should be able to download a resources.zip file https://your-url/resources.zip
inside that zip file you should be able, in theory to access the text file.