Copying Files having a certain Extension using java
Hi i wanted to know how to copy all the files in a Specific directory having a specified extension. This must work in both linux and windows.
I know how to use java.io.File methods but i don't know if i can actually copy a large number of files through it! |
I Have looked closely at the File class and tried the following piece of code:
Code:
File x = new File("C:\\cute\\Hotel\\classes"); Code:
C:\cute\Hotel\classes\AddItem.txt For that there is the method x.listFiles(FileFilter filter); but i don't know how to use that one! |
All times are GMT -5. The time now is 04:03 PM. |