Ruby
req = Net::HTTP.get_response(URI.parse('http://www.domain.com/coupons.txt'))
@play = req.body
req.body give me the entire page in to a string. What if I just want to read line by line? gets? Can you read line by line through a http get? Or do I just need to read a file from local?
The text file looks like this
1 John Ham 25,000
2 Ham John 25,000
3 Ohail Spam 25,000
4 Ted Dome 25,000
5 Di Di 25,000