how long can you save food

Leftovers
Leftovers
Leftovers
So you have cooked this great meal and somehow the leftovers got pushed to the back of the fridge. You find it a week later--a full seven days. Do you eat it? How long can you save food and it still be safe to eat?