So I understand it's a web server, a local allocated, no running application that just keeps that .txt file inside.
If you can implement an application on your server you could make an HTTP GET request, so whenever it is accessed it would return the desired file to your other Java framework that needs it, and you can even format it and hit your presentation.
- GET: Request 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 for it by the physical path.
I believe URLConnection is the most basic way to do this , for simple situations it solves, but for more complex cases such as authentication, post and multipart it does not work, so it's best to use HttpClient (Apache HttpComponents).