Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
import java.io.*;
|
||||
|
||||
public class StripLineComments{
|
||||
public static void main( String[] args ){
|
||||
if( args.length < 1 ){
|
||||
System.out.println("Usage: java StripLineComments StringToProcess");
|
||||
}
|
||||
else{
|
||||
String inputFile = args[0];
|
||||
String input = "";
|
||||
try{
|
||||
BufferedReader reader = new BufferedReader( new FileReader( inputFile ) );
|
||||
String line = "";
|
||||
while((line = reader.readLine()) != null){
|
||||
System.out.println( line.split("[#;]")[0] );
|
||||
}
|
||||
}
|
||||
catch( Exception e ){
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue