WELCOME TO JAVA FAQS
HOW TO CREATE DIRECTORY THROUGH JAVA PROGRAM?
import java.io.*;
class demo
{
public static void main(String[] args)throws Exception{
File file=new File("c:/manu");
file.mkdir();
}};//it creates a directory manu inside c drive
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment