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.