FileWriter写入文件失败!
importjava.io.FileWriter;publicclassFileWriterTest{publicstaticvoidmain(Stringargs[])...
import java.io.FileWriter;
public class FileWriterTest {
public static void main (String args[ ]) throws Exception {
FileWriter f1 = new FileWriter("file1.txt");
f1.write ("Hello Tom");
}
}
写入文件不成功 展开
public class FileWriterTest {
public static void main (String args[ ]) throws Exception {
FileWriter f1 = new FileWriter("file1.txt");
f1.write ("Hello Tom");
}
}
写入文件不成功 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询