#1: This is a line of input terminated by a \n
#2: This is another line of input terminated by a \r\n
#3: This is a line of input terminated by a \r
#4: This is the last line