Arduino Function: FileIO.peek

Description

This function clears the buffer once all outgoing characters have been sent. flush() inherits from the Stream utility class. This communicates with the Linux distribution through Bridge. While functionally similar to the SD library, the underlying code and connections are different.

Syntax

file.flush()

Parameters

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


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc