Skip to content

Tag Archives: java-file-handling

The close() method of FileReader class in Java is used to close the file reader. We can’t utilize the reader to read data after the… Read More
The read() method of FileReader class in Java is used to read and return a single character in the form of an integer value that… Read More
The getEncoding() method of FileReader Class in Java is used to return the name of the current stream’s character encoding. If the stream is utilizing… Read More
In Java, with the help of File Class, we can work with files. This File Class is inside the java.io package. The File class can… Read More
Let us first do discuss them in order to get the understanding alongside an example to interpret the differences. Here first we will be discussing… Read More
Checked exceptions are the subclass of the Exception class. These types of exceptions need to be handled during the compile time of the program. These… Read More
Pre-requisites: Java File Handling So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software… Read More
So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the… Read More
Given n number of sorted files, the task is to find the minimum computations done to reach the Optimal Merge Pattern. When two or more sorted… Read More
The length() function is a part of File class in Java . This function returns the length of the file denoted by the this abstract… Read More
The delete() function is a part of File class in Java . This function deletes an existing file or directory. If the file is deleted… Read More
The exists() function is a part of the File class in Java. This function determines whether the is a file or directory denoted by the… Read More
The isFile() function is a part of File class in Java. This function determines whether the is a file or Directory denoted by the abstract… Read More
The getFreeSpace() function is a part of File class in Java. This function returns the unallocated size of the partition denoted by the abstract pathname,… Read More
The createNewFile() function is a part of File class in Java . This function creates new empty file. The function returns true if the abstract… Read More

Start Your Coding Journey Now!