Results 1 to 9 of 9

Thread: Read or get any info stored in the header file ?

  1. #1

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

    Read or get any info stored in the header file ?

    I created a split/merge file .It works good . Now I need to read the info stored in the header file . Is this possible ?

    Any code in any language (VB6 , VB.NET , C# , simple C++ ) , any hint , link , post might be useful . I'm kinda stuck .

    Thanks .

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    what type of file format is it?
    to read bytes, u need to use StreamReader class

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    All file types . I've done this part . My prog can splite any file of any format and reassemble it again . But , I need to enhance it so that I can (hopefuly) read sparate files . i.e I can read part 1 for because it contains header file info but can't read part 2 and the rest of the splites . So I thought I can get header info and store it somewhere and when I need to read any part , I just refer to this header info . Do you think any header file isn't encode in a way it prevents the user from getting any info about the inner structure of the file ???

  4. #4
    Hyperactive Member ZeroCool's Avatar
    Join Date
    Feb 2002
    Location
    In front of my computer
    Posts
    423
    why not create your own header the you append at the
    begining of the indivdual files that you created with your program?

    eg your header contains some basic information orginal file, how many parts, what part it is, CRC checksums and any other information
    Visual Baisc 6 (SP5)
    Windows Xp

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by ZeroCool
    why not create your own header the you append at the
    begining of the indivdual files that you created with your program?

    eg your header contains some basic information orginal file, how many parts, what part it is, CRC checksums and any other information
    Isn't my question clear ?

  6. #6
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    zero got a point.
    if your program splits files, u have to append some type of information to the header of the splitted file so u know where it belongs.

    are u talking about reading splited zips and rar files?

    i am not sure me or zero cool undrestand your quesiton 100%

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    No , I don't have to append anything to the splits . The program works great .

    My question is simply as this :

    How can I read info stored in a MPEG file header(to be more specific) ? Suppose I know the structure of the MPEG files but I don't know how to read data in the begining of the file ?

    Umm , clear ?

  8. #8
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    if you know the structure
    then you have to read the information as binary (it all really depends on how the header is stored, some files store it as binary some as text,
    if u know the structure then u know how its stored, so u would either use StreamReader or BinaryReader

  9. #9

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

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