flush()

描述

把對檔案的修改實際寫入 MicroSD 卡,這個動作在關閉檔案時會自動執行。

read() 是從 Stream 繼承而來。

語法


file.flush()

參數

file:被 SD.open() 回傳的 File 物件

回傳

無回傳值

See Also

close()
Stream.flush()


函式庫參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.