Thanks to CT Arrington's Weblog and Core Java Technologies Tech Tips magazine.new java.util.Scanner(url.openConnection().getInputStream()).useDelimiter("\\Z").next();
Update: one more short way, using Apache Commons IO:
FileUtils.readFileToString(file);
No comments:
Post a Comment