// For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
// path to the output file
string outputPath = Common.MapDestinationFilePath("metadata.csv");
// export to csv
byte[] content = ExportFacade.ExportToCsv(filePath);
// write data to the file
File.WriteAllBytes(outputPath, content);