Reference.FilePrintln History

Hide minor edits - Show changes to output

November 04, 2011, at 02:51 PM by Scott Fitzgerald -
Changed lines 23-27 from:
!!!!Example

[@
@]
to:
!!!!Returns

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

December 22, 2010, at 11:51 PM by David A. Mellis -
Deleted lines 8-9:
Note that the data is not physically written to the SD card until the file is closed (with a call to the [[FileClose | close()]] function) or explicitly synced (with the [[FileFlush | 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().
December 22, 2010, at 07:06 PM by David A. Mellis -
Changed lines 9-10 from:
Note that the data is not physically written to the SD card until the file is closed (with a call to the [[FileClose | close()]] function) or explicitly synced (with the [[FileFlush | flush()]] function).
to:
Note that the data is not physically written to the SD card until the file is closed (with a call to the [[FileClose | close()]] function) or explicitly synced (with the [[FileFlush | 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 -
Added lines 9-10:
Note that the data is not physically written to the SD card until the file is closed (with a call to the [[FileClose | close()]] function) or explicitly synced (with the [[FileFlush | flush()]] function).
November 21, 2010, at 07:05 PM by David A. Mellis -
Changed lines 17-18 from:
''file'': an instance of the File class (returned by SD.open())
to:
''file'': an instance of the File class (returned by [[SDopen | SD.open()]])
November 21, 2010, at 07:05 PM by David A. Mellis -
Changed lines 11-14 from:
''client''.println() \\
''client''.println(data) \\
''client''.print(data, BASE)
to:
''file''.println() \\
''file''.println(data) \\
''file''.print(data, BASE)
Added lines 17-18:
''file'': an instance of the File class (returned by SD.open())
November 21, 2010, at 07:03 PM by David A. Mellis -
Changed lines 7-8 from:
Print data, followed by a newline, to the File, which must have been opened for writing. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters '1', '2', '3').
to:
Print data, followed by a carriage return and newline, to the File, which must have been opened for writing. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters '1', '2', '3').
November 21, 2010, at 07:02 PM by David A. Mellis -
Added lines 1-29:
[[SD]] : ''File'' class

!!println()

!!!!Description

Print data, followed by a newline, to the File, which must have been opened for writing. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters '1', '2', '3').

!!!!Syntax

''client''.println() \\
''client''.println(data) \\
''client''.print(data, BASE)

!!!!Parameters

data (optional): the data to print (char, byte, int, long, or string)

BASE (optional): the base in which to print numbers: BIN for binary (base 2), DEC for decimal (base 10), OCT for octal (base 8), HEX for hexadecimal (base 16).

!!!!Example

[@
@]

!!!!See Also
* [[FilePrint | print()]]
* [[FileWrite | write()]]

Share