get_lines function

Read in specified lines from a text file