André wrote:
> What do I do to be able to read all lines from a file? With this code
> I have below I can only get the first line of the txt file when I use
> mReadString later on.
> Am I doing something wrong? Or is there another way?
> 
> Regards
> André
> 
> File f = new File(Environment.getExternalStorageDirectory()
> +"readme.txt");
> FileInputStream fileIS = new FileInputStream(f);
> BufferedReader buf = new BufferedReader(new
> InputStreamReader(fileIS));
> mReadString = buf.readLine();

Try this:

http://exampledepot.com/egs/java.io/ReadLinesFromFile.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

-- 
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

Reply via email to