Tag: filemanipulation
-
How to read and write to files easily with java.nio.file package
Prior to Java 7 reading and writing to files in Java was not intuitive. We had to depend on java.io package. To write to a file you had to use a file writer like this : You had to create a new instance of FileWriter and then also make sure it is closed once the…