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....
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)
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!!