How do I wire a receptacle and a light switch?
Use a wire nut to connect together:


The live black wire 
The hot LINE terminal on the outlet 
One terminal on the switch


Use a wire nut to connect together:


The live white wire 
The neutral LINE terminal on the outlet 
The white wire coming from the lamp on the wall


Connect the other terminal on the switch to the black wire coming from the lamp on the wall.

Lastly, use a wire nut to connect together:


The ground wire from the live cable 
The ground wire from the lamp cable
The ground terminals on the outlet and switch 
The ground nut in the box, if this is a metal box.


Bad diagram follows: