tag:blogger.com,1999:blog-8712770457197348465.post1098928859286144062..comments2024-03-28T02:47:19.159-07:00Comments on Javarevisited: How to read File into String in Java 7, 8 with Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8712770457197348465.post-32702055432208896252020-04-30T21:48:39.964-07:002020-04-30T21:48:39.964-07:00@Unknown, that's useful, thanks for sharing.@Unknown, that's useful, thanks for sharing. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-39618082687648276452020-04-24T05:23:59.792-07:002020-04-24T05:23:59.792-07:00Since Java 11: java.nio.file.Files#readString(java...Since Java 11: java.nio.file.Files#readString(java.nio.file.Path)Anonymoushttps://www.blogger.com/profile/01116732000325536101noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-5071261050845669832016-12-16T00:07:31.549-08:002016-12-16T00:07:31.549-08:00it's helpfulit's helpfulkymohttps://www.blogger.com/profile/09072768937468726427noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-59386722364205358702015-10-03T22:41:33.651-07:002015-10-03T22:41:33.651-07:00@Javin well already java 7 and java 8 have come up...@Javin well already java 7 and java 8 have come up with new advance features a lot.. but still apart from java this is the below alternative <br /><br />If you are using Java 5/6, you can use Apache Commons IO for read file to string. The class org.apache.commons.io.FileUtils contais several method for read files.<br /><br />e.g. using the method FileUtils#readFileToString:<br /><br />File file =SARAL SAXENAhttps://www.blogger.com/profile/01084233786047386880noreply@blogger.com