Read input lines from a file