凌动小生的Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
import java.io.*;

class SubLineNum{
public static void main(String []sss){
try{
BufferedReader bf = new BufferedReader(new FileReader("c.txt"));
FileWriter fw = new FileWriter("d .txt");
String line = null;
StringBuffer sb = new StringBuffer ();
while((line = bf.readLine())!=null){
String lin = line.substring(line.indexOf(" ")+1)+"\t\n";
fw.write(lin,0,lin.length()); 
}
fw.flush();
fw.close();

}catch(IOException ex){
ex.printStackTrace();
}
}
}

  

posted on 2012-07-10 16:56  凌动小生  阅读(298)  评论(0编辑  收藏  举报