Here you can find the source of writeBytes(String filePath, boolean append, byte[] content)
public static void writeBytes(String filePath, boolean append, byte[] content) throws IOException
//package com.java2s; //License from project: Apache License import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void writeBytes(String filePath, boolean append, byte[] content) throws IOException { FileOutputStream fos = new FileOutputStream(filePath, append); try {// w w w . ja v a 2 s. c o m fos.write(content); fos.flush(); } finally { fos.close(); } } }