Added a file() function for processing multiple files.