Overwrites a file with the contents of a byte array. @param from the bytes to write @param to the destination file @throws IOException if an I/O error occurs
(byte[] from, File to)
| 282 | |
| 283 | |
| 284 | public static void write(byte[] from, File to) throws IOException { |
| 285 | asByteSink(to).write(from); |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Copies all bytes from a file to an output stream. |
no test coverage detected