Take inputs from file