File handling create operation

Program for create operation in file handling:

package com.journaldev.files;
public class FileHandling {
      public static void main(String[] args) throws IOException {
               File file = new File("profjayesh.txt");
                         boolean createNewFile = file.createNewFile();
                         System.out.println("File Created = "+createNewFile);

File Created = true

Related topics

Professor Jayesh video tutorial

Please use contact page in this website if you find anything incorrect or you want to share more information about the topic discussed above.