• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creation of folder

 
Sanjay pts
Ranch Hand
Posts: 357
  • 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
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!