Can you say clearly.
Is yours is Web Application or Windows Application?
If Web application, the Icon file will be displayed at the Browser Tab.
If Windows Application, the Executable file installed will have the specified Icon.
What you actually mean by "Icon to specific file type", do you use same file types as .txt,.mp3,.doc or your own file extensions?