|
Greeting all!
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
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 |
- [jdjlist] Re: Java I/O problem -- Help! rohit kuttappan
- [jdjlist] Re: Java I/O problem -- Help! Nathan Tenney
- [jdjlist] Re: Java I/O problem -- Help! James A. N. Stauffer
- [jdjlist] FileFilter vs. FilenameFilter ... Roger Glover
- [jdjlist] off:topic HTML encoding Emmanuel Eze
- [jdjlist] Re: off:topic HTML en... Tomm Carr
- [jdjlist] Re: Java I/O problem -- Help! Patrik
- [jdjlist] Re: Java I/O problem -- Help! Patrik
