read input lines and save the characters of each line and build an array of pointers to the lines.