• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a directory using File class?

 
Jess Ishasder
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to create a directory, and store newly created files in it.
How can I do that?
I only know how to create a file
Thank you for your help!
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the JDK API documentation on File, I believe something there might be able to help.
(At least if I recall right)
 
Gabrielle Pieck
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look in Class File, method mkdir.
Good luck,
Gabrielle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic