Android reading file from assets and storing in array list
<p>My app needs to read from several files in the assets folder. But my file has delimiters $$$ and ||. The structure of the file is like this.</p>

<blockquote>
  <p>Construction$$$<br>
  All the work involved in assembling resources and
   putting together the materials required to form a new or changed
   facility.|| </p>
  
  <p>Construction Contractor$$$<br>
  A corporation or individual
   who has entered into a contract with the organization to perform
   construction work.||</p>
</blockquote>

<p>The sentences ending with $$$ are to be stored in seperate array list and the sentences ending with || are to be stored on seperate array list.
How can i do this? Any sample or example code will be appreciated. Note that these files are very long.</p>

<pre><code>BufferedReader br = null;
    try {
        br = new BufferedReader(new InputStreamReader(getAssets().open("c.txt"))); //throwing a FileNotFoundException?
        String word;
        while((word=br.readLine()) != null)
            A_Words_array.add(word); //break txt file into different words, add to wordList
    }
        catch(IOException e) {
            e.printStackTrace();
        }
        finally {
            try {
                br.close(); //stop reading
            }
            catch(IOException ex) {
                ex.printStackTrace();
            }
        }
        String[]words = new String[A_Words_array.size()];
        A_Words_array.toArray(words); //make array of wordList

        for(int i=0;i&lt;words.length; i++)
            Log.i("Read this: ", words[i]); 
</code></pre>

<p>Above is the code i found now how to split my sentences based upon ending delimiters?</p>
