Skip to content

Page should reveal that SD.read() can read multiple bytes, just like SD.write() can write them. #4427

@CosmickGold

Description

@CosmickGold

The page for SD.write()
https://www.arduino.cc/en/Reference/FileWrite
correctly points out that SD.write() can write any number of bytes at once, and gives the syntax as:
file.write(data)
file.write(buf, len)

However the page for SD.read()
https://www.arduino.cc/en/Reference/FileRead
only states that SD.read() can read one byte at a time, and gives the syntax as:
file.read()

I proved with a sketch in Arduino 1.0.6 that SD.read() can also read any number of bytes, so it's page should explain this and show the syntax:
file.read(data)
file.read(buf, len)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions