Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java create file


String path = "C:" + File.separator + "hello" + File.separator + "hi.txt";
// Use relative path for Unix systems
File f = new File(path);

f.getParentFile().mkdirs(); 
f.createNewFile();

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #java #create #file
ADD COMMENT
Topic
Name
2+4 =