Reference.FileWrite History

Show minor edits - Show changes to markup

November 04, 2011, at 02:57 PM by Scott Fitzgerald -
Changed lines 24-25 from:

Example

to:

Returns

byte
write() will return the number of bytes written, though reading that number is optional

December 22, 2010, at 11:51 PM by David A. Mellis -
Changed lines 7-8 from:

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().

to:

Write data to the file.

December 22, 2010, at 07:05 PM by David A. Mellis -
Changed lines 7-8 from:

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).

to:

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().

November 29, 2010, at 05:54 AM by David A. Mellis -
Changed lines 7-8 from:

Write data to the file.

to:

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).

November 21, 2010, at 07:18 PM by David A. Mellis -
Changed line 30 from:
to:
November 21, 2010, at 07:08 PM by David A. Mellis -
Changed lines 11-12 from:

file.write(data)

to:

file.write(data)
file.write(buf, len)

Changed lines 18-19 from:

data: the byte or char to write

to:

data: the byte, char, or string (char *) to write

buf: an array of characters or bytes

len: the number of elements in buf

November 21, 2010, at 07:06 PM by David A. Mellis -
Added lines 1-25:

SD : File class

write()

Description

Write data to the file.

Syntax

file.write(data)

Parameters

file: an instance of the File class (returned by SD.open())

data: the byte or char to write

Example

See Also

Share