> Which sentence is correct?

Which sentence is correct?

Posted at: 2014-06-09 
One: I spent 100 dollars buying food yesterday. Two: I spent 100 dollars to buy food yesterday.
Both are right I think but the first one is the one I'd say if I was talking
I spent $100.00 on food yesterday.
Number one
One.