Greeting all!

I'm trying to write a Java utility that could enumerate and rename files =
in a specified directory.
Say, I have a directory called MyPictures which contains .jpg & .gif =
files. I want to rename=20
all these files such that now they are 01.jpg, 02.jpg, 03.gif etc.

I know there is a File class in the IO package that will list out all =
the files in=20
a directory (but it does not tell how many files there are) and there is =
a
renameTo( ) method which renames the file.=20

Is there a way I can find out exactly how many files ther are in a =
directory and rename
them in the desired way. Please help me.=20

Also, could you please recomment a good book on swing for beginers and / =
intermediate leve. Thanks in advance

Rohit
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to