Yes most places have outlets and I would suggest bringing a small phone charger just in case you are not near an outlet. Bring a multi plug so you can share when charging your phone.
As for food. I ate Bocadillo con queso, orange juice, tortilla espagnola, cafe, There are little stores along...