Exporting data to a client file