Hide minor edits - Show changes to markup
byte
write() will return the number of bytes written, though reading that number is optional
Write data to the file. Note that the data is not physically written to the SD card until the file is closed (with a call to the close() function) or explicitly synced (with the flush() function). If the file was opened in mode FILE_APPEND, the data will be appended to the end of the file, regardless of the current cursor position set by seek().
Write data to the file.
Write data to the file. Note that the data is not physically written to the SD card until the file is closed (with a call to the close() function) or explicitly synced (with the flush() function).
Write data to the file. Note that the data is not physically written to the SD card until the file is closed (with a call to the close() function) or explicitly synced (with the flush() function). If the file was opened in mode FILE_APPEND, the data will be appended to the end of the file, regardless of the current cursor position set by seek().
Write data to the file.
file.write(data)
file.write(data)
file.write(buf, len)
data: the byte or char to write
data: the byte, char, or string (char *) to write
buf: an array of characters or bytes
len: the number of elements in buf