Java File Write fileWrite(String filename, byte[] ba)

Here you can find the source of fileWrite(String filename, byte[] ba)

Description

file Write

License

Open Source License

Declaration

public static void fileWrite(String filename, byte[] ba) throws FileNotFoundException, IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Main {
    public static void fileWrite(String filename, byte[] ba) throws FileNotFoundException, IOException {
        FileOutputStream fos = new FileOutputStream(filename);
        fos.write(ba);/*from   ww w.  j  a v a 2 s . c om*/
        fos.close();
    }
}

Related

  1. fileWrite(String fileName, String str)
  2. fileWrite(String filePath, String data)
  3. fileWrite(String filePath, String fileName, String content)
  4. fileWrite(String path, int format, String content, Object bytesObj)