title: how to create a folder and file in internal storage using kotlin
body: <p>I'm trying to create a file and folder on my internal storage<br>
  in manifest i have </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
  </code></pre>
  
  <p>these permissions.</p>
  
  <pre><code>fun test(view: View) {
          try {
              val myObj = File("filename.txt")
              if (myObj.createNewFile()) {
                  println("File created: " + myObj.name)
              } else {
                  println("File already exists.")
              }
          } catch (e: IOException) {
              println("An error occurred.")
              e.printStackTrace()
          }
      }
  }
  </code></pre>
  
  <p>i got this </p>
  
  <pre><code>An error occurred.
  java.io.IOException: Read-only file system
  </code></pre>
  
  <p>i tried so many other thing from javatpoint to official java and kotlin tutorials.
  but none worked</p>