Wednesday, August 10, 2011

Java 7: Read File Into String

The following is a simple Java 7 code that reads a file content into a string using the NIO2 library. I also use the new try-with-resource of Java 7 here =)

The complete source code for this application is hosted at If you have the command line Subversion client, you can checkout the repository by running:

svn co

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.