Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File Extention Identifier

807603Feb 19 2008 — edited Feb 20 2008
I am trying to make a program that prompts the user for a file extension, and then outputs a description of that extension. For example:

Input: txt
Output: Text Document

The easiest way that I can think of is to read the known extensions and their matching descriptions from a file somewhere inside of the OS (I'll be using this program on Windows 98). I have seen this list displayed in Windows Explorer under the "Tools>>Folder Options>>File Types" tab. If anyone knows the location of this file, or any similar list, please post.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2008
Added on Feb 19 2008
7 comments
105 views