read line method