Adds a method to_file to export in file directly