1 package nmp.io; 2 3 /*** 4 * Merges all file with name " prefix | n | suffix " (with n staring in 0 5 * and stoping when the file does not exist) into the file filename 6 */ 7 public class MergeFiles 8 { 9 public static void main(String[] args) 10 { 11 try { 12 if( args.length != 3 && args.length != 4 && args.length != 5) 13 System.err.println( "Use:\nMergeFiles output_filename prefix sufix [start [anything]]"); 14 else 15 nmp.io.Utilities.merge( (args.length == 3 ? 0 : Integer.parseInt( args[3])), args[0], args[1], args[2], args.length == 5); 16 }catch( Throwable th) { 17 th.printStackTrace(); 18 } 19 } 20 }

This page was automatically generated by Maven