Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java Programs
2.0K+ articles
Computer Science Fundamentals
1.5K+ articles
Java-IO package
259+ articles
Java-I/O
75+ articles
Java-Library
71+ articles
Java-File Class
53+ articles
java-file-handling
34 posts
Recent Articles
Popular Articles
File delete() method in Java with Examples
Last Updated: 28 January 2019
The delete() function is a part of File class in Java . This function deletes an existing file or directory. If the file is deleted then the function returns true else ret...
read more
Java
Java-Functions
java-file-handling
Java-IO package
Java-File Class
File getFreeSpace() method in Java with examples
Last Updated: 29 July 2019
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, if the pathname ...
read more
Java
Java-Functions
java-file-handling
Java-IO package
Java-File Class
How to find and open the Hidden files in a Directory using Java
Last Updated: 10 June 2020
Pre-requisites: Java File HandlingSo far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most ...
read more
Java
java-file-handling
Java Program to Create a New File
Last Updated: 10 January 2025
There are two standard methods to create a new file, either directly with the help of the File class or indirectly with the help of the FileOutputStream class by creating ...
read more
Java
Java Programs
java-file-handling
Java-Files
Java Program to Handle Checked Exception
Last Updated: 04 May 2023
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 exceptions can be ha...
read more
Java
Technical Scripter
Java Programs
Technical Scripter 2020
java-file-handling
Difference Between FileInputStream and FileReader in Java
Last Updated: 16 December 2021
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 out FileReader class. So...
read more
Java
Difference Between
Picked
java-file-handling
File Handling in Java
Last Updated: 10 January 2025
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 be used to create an object of the class an...
read more
Java
Picked
java-file-handling
Java-Files
Java FileReader Class getEncoding() Method with Examples
Last Updated: 02 February 2022
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 a historical encodin...
read more
Java
Picked
Java-Functions
java-file-handling
Java FileReader Class close() Method with Examples
Last Updated: 16 February 2022
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 close() method is executed. This proced...
read more
Java
Picked
Java-Functions
java-file-handling
Java FileReader Class read() Method with Examples
Last Updated: 16 February 2022
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 contains the character's char value. The c...
read more
Java
Picked
Java-Functions
java-file-handling
Encrypt and Decrypt String File Using Java
Last Updated: 28 April 2025
In the field of cryptography, encryption is the process of turning plain text or information into ciphertext, or text that can only be deciphered by the intended recipient...
read more
Java
Technical Scripter
Technical Scripter 2022
Java-Strings
java-file-handling
How to Check a File or Directory Exists in Java?
Last Updated: 28 April 2025
One of the most frequent tasks carried out by a file system in an operating system is checking the existence of a directory or a file. In the form of library functions, mo...
read more
Java
Technical Scripter
Technical Scripter 2022
java-file-handling
Java File Handling Programs
Last Updated: 22 June 2024
Java is a programming language that can create applications that work with files. Files are containers that store data in different formats, such as text, images, videos, ...
read more
Java
Java Programs
java-file-handling
How to Create a Directory in Java?
Last Updated: 28 April 2025
In Java, creating a directory is a common operation when working with file system manipulation. Directories are used to organize files and other directories into a hierarc...
read more
Java
Java Programs
Picked
java-file-handling
Java-File Class
Java-Files
Java Examples
How to Get the Size of a File in Java?
Last Updated: 07 February 2024
In Java, file transferring, retrieving content of files, and manipulation of files developers frequently require the size of the file to perform proper file handling. In J...
read more
Java
Java Programs
Picked
java-file-handling
Java Examples
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !