aspose file tools*
The moose likes Servlets and the fly likes Creation of folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creation of folder" Watch "Creation of folder" New topic
Author

Creation of folder

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
Hi
I have no idea where i can put this query.I know its basic java question but i want immidiate reply so i can put this query here.
HOW TO CREATE EMPTY FOLDER USING JAVA.
Thanx.
sanjay


Eat JAVA, Drink JAVA, Sleep Java
Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357

Im sorry for this .But im getting the answer
import java.io.*;
String pathname = "c/temp/Foldername";
File f = new File(pathname);
f.mkdir();
This will create a folder named given as Foldername.
Thanx
sanjay
 
wood burning stoves
 
subject: Creation of folder