package FileIO.FileZuoYe;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Test03 {
public static void main(String[] args) throws IOException {
FileOutputStream fo=new FileOutputStream("D:\\c.txt",true);
String by="i leve java \r\n";
for(int i=0;i<5;i++){
fo.write(by.getBytes());
}
fo.close();
}
} |
|