You mean you have accomplished the two individual tasks "reading from a file" and "splitting a string", but can't put them together?
I assume your <read from file> code is a loop, reading the file line by line, which you assign to a String variable. Why can't you just use your "split a string" code on this variable that was assigned to while reading from a file? I guess I find it hard to believe that you've accomplished the two tasks separately yet can't put them together. What error do you receive when you try? On Friday, 2 March 2012 11:26:42 UTC-5, leigh8347 wrote: > > Hello > > sorry for the simple and i guess basic question but how would i get > some lines ot text saved in a .txt file on a sd card. > > then split the line and display word 1 and word 3. the words are > separated by commas. > > i have spent a good few hours looking through google for the answer > but have not come up with any code that works. > > i can read a file and display it > and i can split a string > > but i cant seem to merge these two parts and get it to work > > regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

