|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MergeFiles.java | 0% | 0% | 0% | 0% |
|
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 | 0 |
public static void main(String[] args) |
10 |
{ |
|
11 | 0 |
try {
|
12 | 0 |
if( args.length != 3 && args.length != 4 && args.length != 5)
|
13 | 0 |
System.err.println( "Use:\nMergeFiles output_filename prefix sufix [start [anything]]");
|
14 |
else
|
|
15 | 0 |
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 | 0 |
th.printStackTrace(); |
18 |
} |
|
19 |
} |
|
20 |
} |
|
21 |
|
|