I need to travel to Edinburgh one day before my airplane is going, and i wouldn’t stay the whole night in the airport. So I need a cafe or bar. If you know something like that, and the place has a free wifi, please write it for me.
(and sorry for my bad english, i try to learn it every day.) 
I don’t think there is such a place in Edinburgh. You can easily get a bed for the night for about £20 if you search now. There are some clubs open late, and other pubs open very early but you wouldn’t want to be anywhere near them really.
it is a challenge. thank you very much.
response:
serving peanuts is a good idea. what if absolutely no food would be served for purist reasons?
If you mean it doesn’t sell food, would something like peanuts count? I see lots of bars put out salty snacks for free so that people get thirsty and order more drinks.
Edit: Well to increase revenue you need to increase the price of your drinks, sell more drinks, or some combination of the two. To sell more drinks it’s either having the normal crowd buy more than they currently do or finding ways to bring new people into the cafe/bar. Some places tie in to local events to bring more people in (anything local that happens nearby in the summer – like outdoor concerts?). Some places add things to the bar to bring people in and encourage them to stay – such as darts, pool, trivia contests.