Is there such program that retrieve all info stored in any header file ?
Thanks .
Printable View
Is there such program that retrieve all info stored in any header file ?
Thanks .
1 bump :rolleyes:
D'uh
gave up ! :)
Could you be a bit more descriptive please?
Umm , I thought it's clear but I'll explain a bit more .
I need , for example , to read file header information for MPEG file . These info are stored in the beginning (the first 128 bit I think) of the file (like how many frames , total time ..etc ) . Is that clear now ? :rolleyes:
Do you need an app for all types of files? Don't think there is an app like that. Just to many file formats. Only reading the header of a zip or an jpeg file is a pain in the ass becuase there is new versions all the time....but I might be wrong tho'...
Let's say , for MPEG and MP3 files . Is there anyone for this job ?Quote:
Originally posted by NoteMe
Do you need an app for all types of files? Don't think there is an app like that. Just to many file formats. Only reading the header of a zip or an jpeg file is a pain in the ass becuase there is new versions all the time....but I might be wrong tho'...
Its not a very compact solution however there are plenty of large programs made to edit those files. Im sure some of them would be able to display or edit the infromation you want.
I know ,Quote:
Originally posted by Evil_Cowgod
Its not a very compact solution however there are plenty of large programs made to edit those files. Im sure some of them would be able to display or edit the infromation you want.
I don't want to edit the these files . Anyways , I said I gave up !
www.Wotsit.org is a good place to look - they have descriptions of file structures for lots of file types (and some code too).
Thanks , I've already checked the first link but the second one is good too . Most of the code in C\C++ and mostly they talk to C++ gusy :( I believe . For now , I'll skip this part in my proj and try to do it later .Quote:
Originally posted by si_the_geek
www.Wotsit.org is a good place to look - they have descriptions of file structures for lots of file types (and some code too).
Thanks everyone .
Dude, hello?!?! C++, VB, Java, whatever.. the data structure and data types for a binary file format will still be the same no matter what language you use. Your project isn't as trivial as it seems. You want a program to automaticall identify a file type via the header information within the file verse identifying the type of file by the files extension.
lol , I know that .Quote:
Originally posted by nkad
Dude, hello?!?! C++, VB, Java, whatever.. the data structure and data types for a binary file format will still be the same no matter what language you use. Your project isn't as trivial as it seems. You want a program to automaticall identify a file type via the header information within the file verse identifying the type of file by the files extension.
I meant I couldn't find a way to read this structure .
And identifiying file via ext , it's useless when it comes to avi(divx or other codecs) and MPEG (1.1 , 1.5 , 2.0) . :confused:
Are you using vb?
Why can't you create a UDT (user defined type)
Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?Code:Private Type header_t
ID As String * 2
Version As Integer
CompanyName as String * 10
End Type
Dim FileHeader As header_T
No , I'm using C# for this proj I've programmed in VB for years but hate to go back . ;)Quote:
Originally posted by nkad
Are you using vb?
Why can't you create a UDT (user defined type)
Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?Code:Private Type header_t
ID As String * 2
Version As Integer
CompanyName as String * 10
End Type
Dim FileHeader As header_T