Results 1 to 2 of 2
  1. #1
    flamewaver is offline Member
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default Program Idea Can it be done?

    Long time lurker first time poster,

    I want to write a java program ( as Im studying it ) that basically searches through a directory for certain files that can be selected such as .avi .mp3

    it then copys them across to a new directory

    How do I implement the seach function itself?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,611
    Rep Power
    25

    Default

    searches through a directory for certain files
    Yes, you can use the File class for that. It has methods that will get a list of files and directories contained in a directory.

Similar Threads

  1. I have no idea what I'm doing any more...
    By kaizen9001 in forum New To Java
    Replies: 1
    Last Post: 03-26-2011, 06:10 PM
  2. Idea
    By Engineer in forum New To Java
    Replies: 1
    Last Post: 09-19-2010, 08:02 PM
  3. Idea for a program
    By Ejava in forum New To Java
    Replies: 0
    Last Post: 04-11-2010, 07:55 PM
  4. need an Idea ...
    By Mekonom in forum AWT / Swing
    Replies: 43
    Last Post: 11-29-2009, 04:26 PM
  5. I have an idea !!
    By HosHos in forum New To Java
    Replies: 1
    Last Post: 08-12-2009, 07:38 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
  •