1.1 FileOutputStream的用法
import java.io.*;
public class TestMark_to_win {
public static void main(String args[]) throws Exception {
FileOutputStream f = new FileOutputStream("c:/4.txt");
/*aa=97,there is not a method called write(byte b) so it will call
FileOutputStream是OutputStream的继承类,从字面上就可看出,它的主要功能就是能向磁盘上写文件。write方法会把字节一个一个的写入磁盘中。
例:1.1.1import java.io.*;
public class TestMark_to_win {
public static void main(String args[]) throws Exception {
FileOutputStream f = new FileOutputStream("c:/4.txt");
/*aa=97,there is not a method called write(byte b) so it will call
write(int b) . public void write(int b) throws IOException Writes the
详情黏贴以下网址在地址栏后请进:http://www.mark-to-win.com/JavaBeginner/JavaBeginner8_web.html#UsageOfFileOutputStream