Click here to Skip to main content
15,887,416 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi. I have a question about this, What should I look into or read about to get knowledge of making a program that can read a unknown file extension. In my case (.shn).
Posted

Do you mean this[^]?

Contact the company and ask them or search Google to see if anyone has created an app that can read the files.
 
Share this answer
 
Comments
maxbre 2-Nov-12 11:16am    
No, its not that file. The .shn file I have is acually used to store data for a game. There is already apps for to open this called "shn editor". But I'm curious how the one who created this app got the application to read the format.
R. Giskard Reventlov 2-Nov-12 11:19am    
Er, try asking them direct?
You would need to know the structure of the file, but you might not be able to find it if it's proprietary. If you have a converter available you might be able to convert a file into a file type you can read (in this case, maybe something like MP3 would be easier to work with).

Beyond that, there isn't much you can do, all files are just a series of bytes, there's no magic way to translate any file into a useable form.

This page[^] looks like it has some information that could point you in the right direction.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Nov-12 16:50pm    
Of course, a 5.
I also added important thing -- there is no such thing as "extension"; for more detail, please see my answer.
--SA
The root of the problem is this: there is no such thing as "file name extension" in Windows or, I'm almost sure, none of the OS where CLI is presently supported. Such "extensions" was in use in some old OS as VAX VMS and MS-DOS (not quite an OS though), probably still in use somewhere, but this "feature" is rather esoteric, more of "limitation" of file system than "extension".

For Windows, this is nothing but some file naming convention. It cannot be known or unknown. Some name patterns are registered in Windows Registry (and more can be added with software installation, for example), only to tell the Windows Shell what default application to use with such files, as well as some other (optional) usage information. The real information on the file structures and formats is contained in the file contents (this is called "metadata", which may or may not be available). That's it.

What knowledge? Perhaps you just need to know a bit more on the concept of the file, file system, file system objects, I/O programming and serialization; everything else depends on particular applications and application fields.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900