I/O------字节输出流

package io.day03;

import java.io.FileOutputStream;

import java.io.OutputStream;

public class day03out {

public static void main(String[] args) throws Exception {

//第二个参数,表示是否向末尾追加,true: 追加

//false:不追加(默认)

OutputStream ios =new FileOutputStream("src/b.txt",true);

byte[] bs ={97,98,99,100,101};

//  ios.write(97);

ios.write(bs);

ios.close();

}

}

上一篇:C# 实现磁性窗体


下一篇:[Vijos 1143]三取方格数