pinMode
void pinMode(uint8_t pin, uint8_t mode);
This function sets the pin specified to the mode specified. There are two modes you can use: INPUT and OUTPUT, for reading a value, or setting a value, respectivley.
Usage:
//I want pin 5 to read, and pin 8 to write
pinMode(5, INPUT);
pinMode(8, OUTPUT);