nullpointerexception问题求助!!!
import *;public class FileOperation{
public static void main(String args[]){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
File myfile=new File("Line.txt");
String s;
try{
BufferedWriter bw=new BufferedWriter(new FileWriter(myfile));
while(true){
System.out.println("输入字符串:");
s=br.readLine();
if(s.length()==0) break;
bw.write(s);
bw.newLine();
}
bw.close();
}
catch(IOException e){}
try{
BufferedReader brF=new BufferedReader(new FileReader(myfile));
while(true){
s=brF.readLine();
if(s.length()==0) break;
} }
catch(IOException e){}
}
}
求教大神们此处该如何改,谢谢呀!!