title: how to read text file from assets in fragment?
body: <p>How should i read text file from <code>assets</code> ?</p>
  
  <p>I am using fragment here.
  It looks like i cant use anything with <code>getAssets();</code> because then i get: <code>Error:(88, 37) error: cannot find symbol method getAssets()</code> The goal is to be able to read/write several strings.</p>
  
  <p>For example:</p>
  
  <pre><code>AssetManager assetManager = getAssets();
  InputStream inputStream = null;
  try {
      inputStream = assetManager.open("hello.txt");
  }
  catch (IOException e){
      Log.e("message: ",e.getMessage());
  }
  </code></pre>
  
  <p>I would like to be able to read values in one place, then write values in another place of the code. Please help, i'am desperate, nothing that i have found online is working</p>