help make 只能写代码,然后我是新手)下面是一段代码:
if(myName.equals(name)){
BufferedReader br = null;
try{
File file = new File("C:\\Users\\vany\\Desktop\\test\\" + list[i]);
br = new BufferedReader(new InputStreamReader(
new FileInputStream(file), "UTF8"));
PrintWriter wr = response.getWriter();
wr.print("<html>");
wr.print("<head>");
wr.print("<title>HelloWorld</title>");
wr.print("<body>");
wr.write("<div>");
wr.write(br.readLine());
wr.write(br.readLine());//link1
wr.write("</div>");
wr.write("<hr>");
wr.print("</body>");
wr.print("</html>");
wr.close();
}
catch(XException e){
}
但要离开只是赶上 - 坏事添加到它?
catch(XException e){
}