title: Read Files using Rx Java
body: <p>I have a number of files from a folder, which I am reading and storing its content to the database. How can I perform the same operation subsequently using RX Java? As I have many files to read and It is taking a lot of time in Async Task</p>
  
  <pre><code>String path = "some path";
          File directory = new File(path);
          File[] files = directory.listFiles();
          Log.d(TAG, "Size: " + files.length);
          for (int i = 0; i &lt; files.length; i++) {
              Log.d(TAG, "FileName -&gt; " + files[i].getName());
  
           //execute async to read file
          }
  </code></pre>