FilterOutputStream: write(byte[] b) : FilterOutputStream « java.io « Java by API






FilterOutputStream: write(byte[] b)

  
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class Main {

  public static void main(String[] args) throws Exception {
    BufferedOutputStream bufferedOutput = new BufferedOutputStream(new FileOutputStream(
        "yourFile.txt"));
    bufferedOutput.write("Line one".getBytes());
    bufferedOutput.write("\n".getBytes());

    bufferedOutput.write(65);
    bufferedOutput.close();
  }
}

   
    
  








Related examples in the same category

1.extends FilterOutputStream