import java.io.FileWriter;
import java.io.IOException;
public class Out extends permutation {
public static void main(String[] args) {
try {
FileWriter fw = new FileWriter("c://tt.txt");
for (int i=0;i<=10;i++){
fw.write(i) ;
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
我想在tt.txt文本文件中保存0 1 2 3....10记录,为何文件里是空的没有数据,新手请教


[此贴子已经被作者于2006-2-21 10:53:31编辑过]