seek()

描述

移動讀取及寫入資料到檔案的位置。

語法


file.seek(pos)

參數

file:被 SD.open() 回傳的 File 物件
pos:要移動到的目標位置,型態為 unsigned long

回傳

bool:執行成功則回傳 true,反之回傳 false

See Also

position()


函式庫參考主頁面

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.