Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
Component: DocumentationRelated to Arduino's documentation content Library: SDThe SD Arduino library
@CosmickGold

Description

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

    Component: DocumentationRelated to Arduino's documentation content Library: SDThe SD Arduino library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /