View Single Post
  #3 (permalink)  
Old 11-08-2007, 09:01 PM
made.putrama made.putrama is offline
Member
 
Join Date: Nov 2007
Location: Singapore
Posts: 3
made.putrama is on a distinguished road
You may try the following code:

Code:
public class TestParser{ public static void main(String[] args){ for(int i=0; i<Integer.parseInt(args[1]); i++) { File file = new File(args[0]+"/filename"+(i+1)+".xml"); doTestParser(file); } } static void doTestParser(File pFile ){ //do something with the xml file } }

You should now execute only one time from the command line, e.g:

/>java Testparser <<file directory>> <<total file>>


Regards,
Putrama
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote