后面那段代码是什么意思的呢?

icebeer2008 2004-05-07 10:24:27
<%File dir=new File("e:/test","Students");
dir.mkdir();//承ゅン
File f=new File(dir,"hello.txt");
try{
FileOutputStream mm=new FileOutputStream(f);
BufferedOutputStream bufferout=new BufferedOutputStream(mm);
byte b[]="我是猪头<br>nice to meet you".getBytes();
bufferout.write(b);
bufferout.flush();
bufferout.close();
mm.close();
FileInputStream in=new FileInputStream(f);
BufferedInputStream bufferin=new BufferedInputStream(in);
byte c[]=new byte[60];
int n=0;
while((n=bufferin.read(c))!=-1)
{String temp=new String(c,0,n);
out.print(temp);
}
bufferin.close();
in.close();
}
catch(IOException e)
{
}
%>
...全文
60 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧