movies with file input and output