java bufferwriter为什么不能输入到文件中 10
Filewritefile=newFile("d:\\","3.txt");try{booleanb=writefile.createNewFile();}catch(E...
File writefile=new File("d:\\","3.txt");
try{
boolean b =writefile.createNewFile();
}catch(Exception e){
e.printStackTrace();
}
FileWriter outputfile=new FileWriter(writefile);
BufferedWriter output = new BufferedWriter(outputfile);
String a="woshidafnadnfadj";
output.write(a,0,a.length()); 展开
try{
boolean b =writefile.createNewFile();
}catch(Exception e){
e.printStackTrace();
}
FileWriter outputfile=new FileWriter(writefile);
BufferedWriter output = new BufferedWriter(outputfile);
String a="woshidafnadnfadj";
output.write(a,0,a.length()); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询