Results 1 to 15 of 15

Thread: Header file reader ?

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Header file reader ?

    Is there such program that retrieve all info stored in any header file ?

    Thanks .

  2. #2

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    1 bump

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    D'uh
    gave up !

  4. #4
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    Could you be a bit more descriptive please?

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 ?

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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'...

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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'...
    Let's say , for MPEG and MP3 files . Is there anyone for this job ?

  8. #8
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    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.

  9. #9

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 know ,

    I don't want to edit the these files . Anyways , I said I gave up !

  10. #10
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    www.Wotsit.org is a good place to look - they have descriptions of file structures for lots of file types (and some code too).

  11. #11

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 , 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 .

    Thanks everyone .

  12. #12
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    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.

  13. #13

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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.
    lol , I know that .

    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) .

  14. #14
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770
    Are you using vb?

    Why can't you create a UDT (user defined type)

    Code:
    Private Type header_t
       ID As String * 2
       Version As Integer
       CompanyName as String * 10
    End Type
    
    Dim FileHeader As header_T
    Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?

  15. #15

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by nkad
    Are you using vb?

    Why can't you create a UDT (user defined type)

    Code:
    Private Type header_t
       ID As String * 2
       Version As Integer
       CompanyName as String * 10
    End Type
    
    Dim FileHeader As header_T
    Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?
    No , I'm using C# for this proj I've programmed in VB for years but hate to go back .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width