File::read()

名称

File::read()

説明

ファイルパスの現在位置からコンテンツを読み出す。

書式

#include <FS.h>

int File::read();
int File::read(uint8_t* buf, size_t size);

引数

buf読み出したコンテンツを格納するバッファ。
size読み出すサイズ。

戻り値

読み取ったバイト数。ファイルパスが有効でない場合は-1。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system