Set a file input.
file should be a file object open for reading. The application is responsible for closing the file.
An open file.