Exports to the specified file, overwriting it if it already exists. Any directories included in the file name that do not yet exist will be created. If a file name is given with no directory, the file will be created in the current user's Documents folder.
Parameters: