Results 1 to 3 of 3
  1. #1
    Tota is offline Member
    Join Date
    Aug 2010
    Posts
    2
    Rep Power
    0

    Default Save files in directories

    Hi ,

    I have created several directories in java and I want to save files in each of the directory , any body tell how please??:):(
    Thanks

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    758
    Rep Power
    8

    Default

    Hi,

    You can start doing your Java IO from the following tutorial: Reading, Writing, and Creating Files (The Java™ Tutorials > Essential Classes > Basic I/O)

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Get the root folder path. In that folder you can check either files or folders contain. Keep all the records, and in each folder save your file. Recursion would be helpful.

    Hope it's wired to you. But like that build a logic first, then try to address each part. On link that wsaryada send to you in previous post, all you want is there.

Similar Threads

  1. How can i save the data Internally(auto save)
    By Rama Koti Reddy in forum AWT / Swing
    Replies: 2
    Last Post: 11-01-2010, 08:31 PM
  2. List of files and directories.
    By artemff in forum CLDC and MIDP
    Replies: 6
    Last Post: 01-02-2010, 04:06 PM
  3. Directories
    By KevMeistr in forum New To Java
    Replies: 6
    Last Post: 06-11-2008, 04:03 PM
  4. JSP – getting list of directories
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-31-2008, 12:51 PM
  5. getting paths and directories
    By marco in forum Java Applets
    Replies: 3
    Last Post: 11-25-2007, 07:28 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
  •