« Back to home

Java file I/O in 2014

There are lots of articles about file handling in Java. However, a lot of them seem to be out-of-date, given the advent of New IO (NIO) and the enhancements in Java 1.7. So, I sat down with the J2SE 7 JavaDoc, and put together this guide to how to do modern Java file I/O. Step 0 Before you start dealing with file streams, see if Java NIO will do all the work for you.…

Read more »