Replaced deprecated 'gets' routine in LINE with getline