Search:

Type: Posts; User: andreas90

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    1,561

    [SOLVED] Re: BufferedReader skips odd numbered lines

    You are welcome.


    Each time you call the readLine() method a line in your text file is read.
    Your text file is:

    and your code:

    try {
    while((r.readLine())!=null){
  2. Replies
    4
    Views
    1,561

    [SOLVED] Re: BufferedReader skips odd numbered lines

    Hello beer-in-box!

    It's pretty simple what is wrong with your code.

    try {
    while((r.readLine())!=null){

    w = r.readLine();

    System.out.println(w);
Results 1 to 2 of 2