Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: java program check for files

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    3
    My Mood
    Amused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question java program check for files

    Hello World! ,

    i m java programming begginer and i know this forum have a lots of thin newbie threats where people ask for begginer help. Soo, i will ask too... well... i m not asking exacly for newbie tips i already know a lot but if you can share some more advanced java programming tutorials i will be greatfull. But the main reason i m posting this is how can i make java check for files in directory i println what files are in that directory... if anyone can answer it please do....


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,387
    My Mood
    Hungover
    Thanks
    144
    Thanked 628 Times in 538 Posts

    Default Re: java program check for files

    Your best friend should be the API. The File class (a File instance can represent a directory) has several methods worth checking out.

    Java Platform SE 6

    Also, Java 7 includes several additions that might help you out.

    File I/O (Featuring NIO.2) (The Java™ Tutorials > Essential Classes > Basic I/O)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. The Following User Says Thank You to KevinWorkman For This Useful Post:

    Creeper (February 29th, 2012)

  4. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    3
    My Mood
    Amused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: java program check for files

    tnx man, i found exacly what i was looking for it is called metod of scanning for files using wild cards...
    tnx again!!

Similar Threads

  1. Check Password Program
    By m2msucks in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 6th, 2011, 12:39 AM
  2. Java Program to Check whether a Expression is Valid using Stack
    By rainbow9 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 12th, 2011, 01:11 AM
  3. Not able to check-in the files to CVS using JCVS api
    By marutha.saroj in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 7th, 2011, 11:28 PM
  4. [SOLVED] Compile a set of java files for a sudoku program
    By kanishk.dudeja in forum Java Theory & Questions
    Replies: 7
    Last Post: June 16th, 2011, 09:54 AM
  5. could not open `C:\Program Files\Java\jre6\lib\amd64\jvm.cfg
    By miaaa00 in forum Java Theory & Questions
    Replies: 1
    Last Post: March 29th, 2011, 12:45 AM

Tags for this Thread