title: read single cell record from csv file in j2me
body: <p>In my J2ME application, I got data from <code>.csv file</code> and display all data from file on device. But according to my requirement, I want to display only single cell data on device.So,how can I fetch single cell record from .csv file and display it on device?</p>
  
  <p>"<strong>Update After Comment</strong>"</p>
  
  <pre><code>InputStream is = getClass().getResourceAsStream("/" + "csvsample.csv");
  
  StringBuffer sb = new StringBuffer();
  
   try {
  
  int chars;
  
   while ((chars = is.read()) != -1) {
  
   sb.append((char) chars);
  
   return sb.toString();
  
   } catch (Exception e) {
  
  System.out.println("Exception Occurance::" + e);
  
  }
  
  return sb.toString();
  
  }
  </code></pre>