 |
 |
 |
 |
| Name |
|
saveBytes() |
 |
|
|
| Examples |
|
byte[] nums = { 0, 34, 5, 127, 52};
// now write the bytes to a file
saveBytes("numbers.txt", nums);
|
|
|
| Description |
|
Opposite of loadBytes(), will write an entire array of bytes to a file. This file is saved to the sketch's folder, which is opened by selecting "Show sketch folder" from the "Sketch" menu. |
 |
|
|
| Syntax |
|
saveBytes(filename, bytes)
|
 |
|
|
| Parameters |
|
| filename |
|
name of file to write to
|
| bytes |
|
array of bytes to be written
|
|
 |
|
|
| Returns |
|
None |
 |
|
|
| Usage |
|
Application |
 |
|
|
| Related |
|
loadStrings() loadBytes() saveStrings() |
|
|