BufferedReader - read line by line
<p>I have created a buffered reader like this:</p>

<pre><code>this.inFile = new BufferedReader(new FileReader(fileName));
</code></pre>

<p>And then, I read from it like this</p>

<pre><code>while(System.currentTimeMillis() - lastRead &lt; someTreshold) {
    Thread.sleep(1)
}
lastRead += someTreshold;
String line = inFile.readLine();
//do something with line
</code></pre>

<p>Now I wanted to read a line with 20 entries like that, and display the results line by line. I hoped that I would get something like</p>

<pre><code>0
-someTreshold wait-
1
-someTreshold wait-
...
</code></pre>

<p>Wait I get instead is</p>

<pre><code>-someTreshold wait *20-
0
1
...
</code></pre>

<p>Why is this, and how do I fix this?</p>
