Hi Barna,

how do I call readLine more times in a nice way?

André

On Feb 17, 11:21 pm, Csenteri Barna <br...@mini-box.com> wrote:
> Did You tried to call readLine more times till You get end of file
> exception?
> As far as I remember from my Java experience readLine is intended to
> read only 1 line - check the help to be sure.
> B.
>
>
>
> > 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();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to