Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Extensions
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 2-Nov-12 6:02am
maxbre319
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
maxbre at 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.
mark merrens at 2-Nov-12 11:19am
   
Er, try asking them direct?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 Afzaal Ahmad Zeeshan 120
4 DamithSL 115
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100