• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to change the array into an file

 
deepika deepi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an certain words stored in an array. i want that to be stored in a file and get the same output. how to introduce an file and declare the sentence in that instead of array? i have tried out. but it is showing many errors. can any one please help ?



i want this sentence to be declared in an text file item.txt like this

this is a really really2 really3 really4 really5 silly list



array-adapter.jpg
[Thumbnail for array-adapter.jpg]
array-adapter
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://developer.android.com/guide/topics/data/data-storage.html talks about accessing files in the internal or external (SD card) storage.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic