This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a direcory

 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how to create a Directory in C Drive using Java.io package
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This works:
new java.io.File("C:\DirectoryName").mkdir();
Of course, using a drive name that way makes your program work only on Windows (other systems don't have this concept.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic