Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

file handling in java

// Importing File Class
import java.io.File;
  
class GFG {
    public static void main(String[] args)
    {
  
        // File name specified
        File obj = new File("myfile.txt");
          System.out.println("File Created!");
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #file #handling #java
ADD COMMENT
Topic
Name
3+8 =