Where to put text files in directory in Android

John :

I have a text file i want to include in my Android application, it is not a string file it is a standard text file. It contains data that defines the characteristics of a "map" that is drawn on a board. The file is not an XML file so i am unsure where i should put it or if this isn't good file structure for android? Are you suppose to do this? If you are then under what directory are you suppose to put them? How then are you suppose to access the file? I know how to use FileInputStreams and FileOutputStreams i just need to know how to access the file. All relevant answers are welcome and appreciated!

waqaslam :

Use assets or raw folder in your android folders structure to keep that file. For more info read this

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Where to put PHP files, root directory or public_html directory?

Where to store text files in a Ruby on Rails directory?

Where to put the code that creates local files in android?

Rails : Where is the best place to put rspec files for modules in lib directory?

Where and how to put HTML files in Android app resource files?

Should Kotlin files be put in a separate source directory in Android?

Where to put daemon files?

Where to keep text files in Android project in eclipse

Android kivy where to put application files (ini, images db etc)

Where to put php files for security

Where to put my PHP files

Where to put Coherence configuration files?

Where to put django files on server?

Where to put text file in Intellij

Can there be a content directory, where I can put files (compile time) and load files from (run time), inside an app?

Where is the directory of Android Studio?

Where to put document files and working files?

OpenCV put text on raw files

Where to put SVN repository directory in Linux?

where do I put the image directory in python?

How many files can I put in a directory?

How to put files with Talend respecting directory structures

setting GOCACHE="on" put a bunch of files in the on/ directory

Where I should put my .so files for each android architecture in Unity?

Text replacement in all the files in a directory

Where to put tests testing the configuration in the YAML files

Where to put downloaded files on filesystem (14.04)

Where to put frontend `require` files in a Volt project

Where to put JavaScript files on an Ionic 2 app?