How can I read a text file in Android?

前端 未结 7 1394
-上瘾入骨i
-上瘾入骨i 2020-11-22 07:51

I want to read the text from a text file. In the code below, an exception occurs (that means it goes to the catch block). I put the text file in the applicati

相关标签:
7条回答
  • 2020-11-22 08:54

    Put your text file in Asset Folder...& read file form that folder...

    see below reference links...

    http://www.technotalkative.com/android-read-file-from-assets/

    http://sree.cc/google/reading-text-file-from-assets-folder-in-android

    Reading a simple text file

    hope it will help...

    0 讨论(0)
提交回复
热议问题