reading line by line using new streams api