Reading from and writing to files are both considered to be part of file handling in Java. Working with different file formats is made possible by the File class in the java.io package. Creating an object of the class and specifying a filename or directory name allows you to use the File class. File object = new File(“filename.
Mercy Margret Answered question September 7, 2023