File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creation of folder

 
Sanjay pts
Ranch Hand
Posts: 357
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sanjay pts
Ranch Hand
Posts: 357
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic