Take everything from the command line as the name. Also, open the file when done (assumes 'open' exists).