# detect

KeyView can provide information about a very large number of file formats. This sample program makes use of the file format detection API method.

The sample program takes a path to a file and prints the information reported by the API. For example, the following output is produced when you run the program with an `mp3` file:

    $ ./detect my_file
    Format: 270
    Description:    MPEG Audio
    Version:        3000
    Category:       9
    Category Name:  Audio
    Encrypted:      false

The `Format` and `Category` values are from the C++ enum defined in the `Keyview_Enumerations.hpp` file. See Enumerations for more information.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm