Test readLine line by line