Another tip is to buy your dinner at lunchtime ... or much earlier in the day. Don't ever count on there being food available at the end of the day. Many small shops close up early in the afternoon, or as you found, aren't open at all on certain days.
So when you stop at a shop for lunch, get what you will need for dinner and breakfast the next morning.