Infrequent

Tuesday, April 3, 2012

Read URL into a string in scala

def read(url:String):String = io.Source.fromURL(url).mkString

var response = read("http://search.twitter.com/search.json?q=never%20buy&rpp=5&include_entities=true&result_type=mixed")
Posted by Unknown at 6:20 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ►  2015 (2)
    • ►  April (1)
    • ►  March (1)
  • ►  2014 (1)
    • ►  July (1)
  • ►  2013 (2)
    • ►  April (1)
    • ►  January (1)
  • ▼  2012 (4)
    • ►  September (1)
    • ►  August (1)
    • ▼  April (1)
      • Read URL into a string in scala
    • ►  January (1)
  • ►  2011 (5)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
  • ►  2010 (2)
    • ►  November (1)
    • ►  October (1)
  • ►  2009 (2)
    • ►  August (2)

Total Pageviews

About Me

Unknown
View my complete profile

Followers

Picture Window theme. Powered by Blogger.