SyntaxFix
Write A Post
Hire A Developer
Questions
Use java.net.URL#openStream() with a proper URL (including the protocol!). E.g.
java.net.URL#openStream()
InputStream input = new URL("http://www.somewebsite.com/a.txt").openStream(); // ...