Reads input from file