The writeAllBytes
function is used to write all binary bytes to a file.
var ary = file.readAllBytes("Roboto-Italic.ttf");
file.writeAllBytes("test.ttf", ary);
Calling | Returning |
---|---|
file. writeAllBytes ( path, content ) |
byte[] |
Parameters | Type | Description |
---|---|---|
path |
String |
The relative file path to the storage. |
content |
byte[] |
The byte array to write. |