public void setWholeConfig(String filename,String url)
{
String conf = "";
File file=new File(filename);
StringBuffer sb=new StringBuffer();
try{
if(!file.exists()||file.isDirectory())
throw new FileNotFoundException();
else
{
BufferedReader br=new BufferedReader(new FileReader(file));
String titlexml=null;
titlexml=br.readLine()+"<set>";
while(titlexml!=null){
sb.append(titlexml+" ");
titlexml=br.readLine();
}
sb.append("</set>");
}
}
catch(Exception e)
{System.out.println("set:"+e);}
try{
if(!file.exists()||file.isDirectory())
throw new FileNotFoundException();
else
postStringXML(sb.toString(),url);
}
catch(Exception e)
{System.out.println("Post:"+e);}
}是上面这段代码惹得祸吗?请问如何解决啊,md0文件每日剧增,最后导致硬盘剩余空间为零。 谢谢了!
{
String conf = "";
File file=new File(filename);
StringBuffer sb=new StringBuffer();
try{
if(!file.exists()||file.isDirectory())
throw new FileNotFoundException();
else
{
BufferedReader br=new BufferedReader(new FileReader(file));
String titlexml=null;
titlexml=br.readLine()+"<set>";
while(titlexml!=null){
sb.append(titlexml+" ");
titlexml=br.readLine();
}
sb.append("</set>");
}
}
catch(Exception e)
{System.out.println("set:"+e);}
try{
if(!file.exists()||file.isDirectory())
throw new FileNotFoundException();
else
postStringXML(sb.toString(),url);
}
catch(Exception e)
{System.out.println("Post:"+e);}
}是上面这段代码惹得祸吗?请问如何解决啊,md0文件每日剧增,最后导致硬盘剩余空间为零。 谢谢了!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货