You commented out the only line that assigns any data to the line variable. It's not losing data; you never gave it any.