remove()
描述
刪除 MicroSD 卡裡的檔案。
語法
SD.remove(filename)
參數
filename
:要刪除的檔案路徑,路徑應該要以 “/” 分隔資料夾名稱
回傳
bool
:如果檔案成功刪除則回傳 true
,反之則回傳 false
,如果要刪除的檔案不存在,回傳的值可能是任何值
See also
- rmdir()
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.