title: download csv in android
body: <p>im trying to download a csv file and then need to extract information from it...
  i tried the following code...</p>
  
  <pre><code>URL url=new URL("http://download.finance.yahoo.com/d/quotes.csv?s=INFY.BO&amp;f=sl1d1t1c1ohgv&amp;e=.csv");
  HttpURLConnection c=(HttpURLConnection)url.openConnection();
  c.setRequestMethod("GET");
  c.connect();
  InputStream is = c.getInputStream();
  byte[] buffer = new byte[1024];
  while ((len1 = is.read(buffer)) != -1) 
  {
  sb.append(buffer);
  }
  System.out.println("\n\n\nSTRING &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; "+sb+"\n\n\n");
  </code></pre>
  
  <p>Now this always displays an error saying it closed unexpectedly.</p>
  
  <p>the logcat - <a href="http://dos_killer.byethost7.com/images/Document.rtf" rel="nofollow">link</a></p>