Try the following code. You'll have to write your own stuff in the $$$$ section to write out the stuff to the xml files.
/*************************************/ public void processFile(File file) { if( !file.isDirectory() ) { //$$$$Do something with the file }//if( !file.isDirectory() ) else { File[] filesInDirectory = file.listFiles(); if(filesInDirectory != null) { for(int i = 0 ; i < filesInDirectory.length ; i++) { processFile(filesInDirectory[i]); } } } }//extract /********************************/ > -----Original Message----- > From: Mark Meyer > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 3:01 AM > To: JDJList > Subject: [jdjlist] finding files in a > directory with a specific file mask > > 1) loop through a given directory (on a > windows box) looking for files > with a specific file mask > > 2) then open up the file and interrogate the > information inside (the files > are actually .ini files) > > 3) and then write out the information in an > XML format > > my first task at hand is item 1) > > i have classes/components written in Delphi > to do recursive file > searching - but i don't have a clue as to how > to do this in java. any help, > sources of information or guidance would be > hugely appreciated. > ===== Ken Lai ***** End of Message ****** __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm