Bestandstype

Bepaal het bestandstype met magie
Download nu

Bestandstype Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Naam uitgever:
  • Paul Mison
  • Uitgever website:
  • http://search.cpan.org/~pmison/

Bestandstype Tags


Bestandstype Beschrijving

Bepaal het bestandstype met magie Bestand :: Type is een PERL-module die magische nummers gebruikt (meestal aan het begin van een bestand) om het MIME-type van dat bestand te bepalen. File :: Type kan een bestandsnaam of de inhoudsopgave gebruiken om het type A te bepalen file.synopsis mijn $ FT = Bestand :: Type-> Nieuw (); # Lees in gegevens uit bestand naar $ Gegevens, dan mijn $ Type_from_Data = $ FT-> CONTROLEPE_CONTENTEN ($ Gegevens); # Als alternatief, controleer bestand van schijf mijn $ type_from_file = $ ft-> checktype_fileName ($ bestand); # Handige methode voor het controleren van een bestand of gegevens Mijn $ Type_1 = $ FT-> MIME_TYPE ($ Bestand); Mijn $ Type_2 = $ FT-> MIME_TYPE ($ Gegevens); Vereisten: · Perl


Bestandstype Gerelateerde software