title: How to save/read file (i.e. txt,mht,pdf etc) in Android Q and above version as getExternalStoragePublicDirectory() is deprecated
body: <p>The method <code>getExternalStoragePublicDirectory()</code> is deprecated in Android Q. Now how to save and read a file? A file may be a txt file, pdf, mht format file etc, but it would not be an image.</p>
  <p>As there is also a way to save a file using <em>Storage Access Framework</em>, but it is not fulfilling my requirement as it allow user to save file where they want to save it, but I want to save a file in a specific directory as we were doing through <code>getExternalStoragePublicDirectory()</code> and then also display all the saved files within a list.</p>