0

I'm developing a strategy game that will have a country full of kingdoms. I want to be able to store and read back in the information of the kingdomgs. I've looked at tutorials online but they just aren't specific to what I'm looking for. So basically:

-Where to store a text file which holds string values. -The correct file path. -And how to read from that text file, and check if it is empty.

stannard95
  • 3
  • 1
  • 2

1 Answers1

1

You can store text data in string resource file: https://developer.android.com/guide/topics/resources/string-resource.html

Also you can use asset to store text https://developer.android.com/reference/android/content/res/AssetManager.html

And there is diffrenece: Difference between /res and /assets directories

Community
  • 1
  • 1
Suleiman
  • 1,003
  • 2
  • 15
  • 29