Read input from file