Results 1 to 4 of 4
  1. #1
    swaroopeswara is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Post Regardig Folders/Directories in java

    Hi,
    can any one help me out to code,how to create a new directory if the directory don't exists,and to create a new directory..
    thanks in advance

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    11,394
    Blog Entries
    7
    Rep Power
    17

    Default Re: Regardig Folders/Directories in java

    Read about the possibilities in the API documentation of the File class.

    kind regards,

    Jos
    When people rob a bank they get a penalty; when banks rob people they get a bonus.

  3. #3
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    248
    Rep Power
    2

    Default Re: Regardig Folders/Directories in java

    When you write to a file, if it's not exist it will create it.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default Re: Regardig Folders/Directories in java

    Quote Originally Posted by tnrh1 View Post
    When you write to a file, if it's not exist it will create it.
    True, but totally irrelevant to the question asked here.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Access files in folders and sub-folders
    By kakinyim in forum CLDC and MIDP
    Replies: 0
    Last Post: 05-18-2011, 09:29 PM
  2. Searching directories for folders and .txt files
    By XDrew574X in forum New To Java
    Replies: 1
    Last Post: 03-29-2011, 09:41 PM
  3. Managing directories with java
    By bayan in forum New To Java
    Replies: 3
    Last Post: 07-26-2010, 05:13 PM
  4. Replies: 4
    Last Post: 10-10-2009, 12:26 AM
  5. Replies: 8
    Last Post: 01-07-2008, 05:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •