Take out id in various file formats