Read text file and search contents

by CompuCor » Tue, 14 Apr 2009 00:58:41 GMT

Sponsored Links

I am new to Java and Android.  I have a flat file (pipe-delimited)
stored in R.raw called wordlist.txt.  I want to open this file and
quickly search for a word I pass into my procedure.

I've been searching for a simple way to do this but not having much

Can anyone share some code on how to do this?

Thanks SO much for any help!


Read text file and search contents

by Charlie Collins » Tue, 14 Apr 2009 02:06:43 GMT

 Here is a basic example of reading a raw resource: 


Sponsored Links

Other Threads

1. Saving a file in .xls format and storing it in a particular location.


I am making an activity where we need to save a file in the .xls/.csv format
at a user defined location.

How could this be implemented ? Pointers would be highly appreciated.




2. How to Create language package for android

Hello experts,

              I need to support a Regional language in my android
device .So  guess I need to develop

              language package .And also I am aware that ,I also need
to edit Firmware

              I am totaly new to this area somebody point me right

              Thanks for your valuable time.



3. How to implement a keypad driver

4. C2DM Push Message error on device

5. Mirdak di kelapa gading w/ lesjaw

6. Inputs from the Android Camera

7. no ant template for android-9