How to separate Name list from File System in Android
<p>Can we separate the List of only names from the data from file system as  </p>

<pre><code>Name    Age Sex Address
dani    21  Male    US
ron     34  Male    NY
stella  23  Female  NY
steave  43  Male    US  
[End]
</code></pre>

<p>I have tried to set the Delimiters as'\t' in above data while inserting into file.<br>
I tried </p>

<pre><code>try 
{
fin = openFileInput("FileSystemDatabase.dat");
isr = new InputStreamReader(fin);
br = new BufferedReader(new InputStreamReader(fin));
while ((line = br.readLine()) != null) 
    {
           if (line.equals("\rName\tAge\tSex\tAddress\n"))
                 break;
    }
Pattern p = Pattern.compile("\r\n\\d\t");
while ((line = br.readLine()) != null) 
    {
           if (line.equals("[End]"))
                   break; 
           Matcher m = p.matcher(line);
           if (m.matches()) 
           {
                   text =m.group(1);
                   tv=new TextView(this);
                   tv.setText(text);

           }
    }
}
catch (Exception e)
{
    e.printStackTrace();
}
</code></pre>

<p>But i am not getting the correct result to get correct List.Is there is any simple way to get it?
Please help me..</p>
