Need to create a file object, not try to open a filename.