pub fn write(path: &Path, profile: &Profile) -> Result<(), ProfileError>
Write a profile to any file, as export does.
export