All my money is gone and I have nothing to buy food with.
Could you tell me why the preposition "with" is used here?