Write metadata to file.