file input and confirm