Problem with header file

Dear Members,

I tried running a Arduino code.

In my code, I have used the statement #include <SharpIR.h>

However, when I run the code , I get this error message,
"C:\Program Files (x86)\Arduino\TestRun_v0.81\TestRun_v0.81.ino:3:21: fatal error: SharpIR.h: No such file or directory "

I have checked and there is the header file in the sketch folder.

What could be the problem?

Thank you.

If the header file is in the sketch folder then you need to change the statement to:

#include "SharpIR.h"

Thanks for your reply pert.

If I intend to use #include <SharpIR.h>,

where should i place my header file?

When you do #include <SharpIR.h>
the Arduino IDE searches in the library folders for a matching header file.
When you do #include "SharpIR.h"
the Arduino IDE searches in the sketch folder and then in the library folders for a matching header file.
So if you want to use #include <SharpIR.h> then you should put SharpIR.h(and any associated files) in a folder under {your sketchbook folder}/libraries. To find your sketchbook folder location check File > Preferences > Sketchbook location.

Ok thanks pert