SD - close()

Close the file, and ensure that any data written to it is physically saved to the SD card.

Syntax

file.close()

Parameters

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

Returns

None.

See also