File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creation of folder
 
Similar Threads
Creation of folder
NoClassDefFoundError
Error In package
use jar file in jsp
Updated servlets assignment page