摘要 |
Provided in an example of the present disclosure are a method and apparatus for processing a file having an unknown format, the method comprising: parsing the file header of the file having an unknown format so as to acquire a file format keyword from the file header; determining the file format type of the file having an unknown format, based on the file format keyword, and acquiring an application associated with the unknown file having the format according to the file format type. After the method in the example of the present disclosure is applied, the software environment required for opening this type of file can be determined based on file header analysis, thus avoiding the situation of file format being misjudged in the prior art because the file format and the associated program are determined on the basis of the suffix, thus improving the matching success rate of the associated program. |