2 Questions - Wireless communication and SD card

I don't think were on the same page with the wireless communication.
I am going to use a light recieving diode, with only 2 legs, not an IR reciever, the diode shorts when IR light is near it and I connect it to the 5V to give a HIGH or LOW standart.
What about the code?