If Commands With SD Cards

Is there a way I can create a file on a SD card, write on the SD card. and if i have written "ON" a LED will turn on? I am basically asking for IF commands with SD cards.

Thanks

what you want to do?

If you want to read/write on the SD from two Arduinos? Or should the SD react on your command? -> The SD can just read/write, not more.

To read/write from two Arduinos it's maybe possible but for sure difficult. Then you can write the SD with one Arduino and read the file and react with the other.

But i recommend to describe your idea -> there is maybe an easier solution.

alex

Is there a way I can create a file on a SD card

Yes.

write on the SD card

With a sharpie? Usually you want to write to a file in the SD card...

and if i have written "ON" a LED will turn on?

Writing to a file will not automatically make an LED turn on. You can turn the LED on at the same time that you write to the file.

I want to make a file on a sd card. and when I put it in the sd card module, If i have written "ON", The LED turns on. How can I make the arduino read the file, see if it has the text "ON" on it , and if it douse, turn a LED on.

How can I make the arduino read the file

There are a number of examples that read from SD cards in the SD examples folder.