Checking whether a file or directory in Java

Checking whether the File object exists if exists then check whether it is file of directory to check file existance exists() method of File class is used if it returns true means file or directory exists, at this point we are not confirm existing File object is file or directory. To check file object isDirectory() … Read more

File and Input Output in Java

In Java programming, to perform the input-output in file handling  Java has a java.io package which contain contains nearly every class you might ever need. In file handling streams represent an input source and an output destination. Stream In java programming, a sequence of data defined as a “stream”. Simply  there are two type of … Read more