import java.io.*;
public class T {
public static void main(String[] args) {
int ch;
try {
FileReader in = new FileReader(args[0]);
FileWriter to = new FileWriter(new File("nice.txt"));
BufferedReader br =new BufferedReader(in);
do{
String str2 = br.readLine();
if(str2.getBytes().length != str2.length()) {
System.out.println();
} else {
System.out.println(str2);
to.write(str2+"\r\n");
}
Thread.sleep(1000);
}while(br.readLine()!=null);
in.close();
br.close();
to.close();
}catch(Exception e) {
e.getMessage();
}
}
}
點擊查看更多內容
1人點贊
評論
評論
共同學習,寫下你的評論
評論加載中...
作者其他優質文章
正在加載中
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦