How to create a directory in java

Java File class provides methods to create directory. Two important methods are mkdir and mkdirs. It is important to understand these two methods and pay attention to the return values to confirm that the operation is successful. Method mkdir() Creates the directory named by this… Read More

How to read a file in Java

In Java, you can adopt many ways to read contents of a file. In this tutorial let us explore the most common way of reading a file using java.¬†The steps for reading a file can be broadly broken down into 3 simple steps Open a… Read More