determining file type | determining file type |


determining file type


I have requirement as follows:

If it is file name, then first check the extension. If there is no extension, then read the file data and analyze it to determine if it is MIDI, QCP, PMD or MP3 format.


how is it possible in brew mobile? if yes please provide me some code. Also would this device dependent?

Appreciate your help.