while((l = br.readLine()) != null){
The first time this is called it reads that line into variable
l
, which you then display. The next time it is called, the end of file is reached, so
readLine
returns
null
, and the program terminates.
You need to do some more processing each time you receive a non-null line of text.