As I understand it is a web server, an allocated location, with no running application that just keeps this file . txt la inside.
If on your server it is possible to implement some application you could make an HTTP GET request, so whenever accessed it would return the desired file to your other Java structure that needs it, being able to already format it and correct its presentation.
- GET: Requires a representation of the specified resource (The same resource can have multiple representations, for example services that return XML and JSON).
Now if it is not possible to create this application on the server and the file is available for access, you could search it by physical path.
I believe that Urlconnection is the most basic way to do this, for simple situations solves, but for more complex cases such as Authentication, post and Multipart does not serve, so it is best to use the Httpclient (Apache Httpcomponents).