Return to Snippet

Revision: 34719
at October 27, 2010 19:09 by dalcacer


Initial Code
/**
     * Writes an byte array into a file.
     * @param data Data that should be written into a file.
     * @param filename The file, that should be used.
     * @throws IOException
     */
    public static void writeByte2File(byte[] data, String filename) throws IOException {
        OutputStream out = new FileOutputStream(filename);
        out.write(data);
        out.close();
    }

Initial URL

                                

Initial Description

                                

Initial Title
byte-Array to File

Initial Tags

                                

Initial Language
Java