Reading data line by line