SD not declared in this scope

h

#ifndef Card_h
#define Card_h

#include "Arduino.h"
#include <SD.h>"

class Card{
 
public:
 void init();

private:
  int CS_pin;
};



#endif

source:

#include "Arduino.h"
#include "Card.h"

void Card::init(){

pinMode(CS_pin, OUTPUT);
if(!SD.begin(CS_pin)){
    Serial.println("Card Failed");
    return; 
  }
  Serial.println("Card Ready");

  
}

I've read some web articles describing how to write libraries and I seem to be consistently failing at making this work. I wrote a single sketch to see if I could read some info off of a SD card. When I start to try and write a library to accomplish the task I get the error:

Card.cpp:9: error: 'SD' was not declared in this scope

can someone explain why this doesn't work?

Thanks,

Loren

We need to see your sketch, too. I'm guessing, though, that it does not include SD.h. It needs to.

#include <SD.h>"

Syntax error...?

PaulS:
We need to see your sketch, too. I'm guessing, though, that it does not include SD.h. It needs to.

Yep that was it. Thanks again