import java.io.*;
public class CancelNumber{
private String inFile;
private String outFile;
public CancelNumber(){
}
public CancelNumber(String inFile,String outFile){
this.inFile=inFile;
this.outFile=outFile;
}
public void test(){
BufferedReader in;
BufferedWriter out;
try{
in=new BufferedReader(new FileReader(inFile));
out=new BufferedWriter(new FileWriter(outFile));
StringBuffer sb=new StringBuffer();
String context;
int i=1;
while((context=in.readLine())!=null&&context.length()!=0){
String temp=getCode(context);
sb.append(temp);
}
out.write(sb.toString().trim());
in.close();
out.close();
}catch(FileNotFoundException e){
e.printStackTrace();
}catch(IOException e){
e.printStackTrace();
}
}
public String getCode(String context){
context=context.trim();
int index=0;
int asc=0;
for(int i=0;i<context.length();i++){
asc=(int)context.charAt(i);
if(!(asc>=48&&asc<=57)){
index=i;
break;
}
}
if(index==0&&asc<65)
context=""; //去掉只有数字的行,字母最小的ASCII值为65(a)
else
context=context.substring(index)+"\n"; //去掉开头的数字(正常流程)
return context;
}
public static void main(String[]args){
String inFile=args[0];
String outFile=args[1];
new CancelNumber(inFile,outFile).test();
}
}