|
-
Jan 17th, 2004, 03:03 PM
#1
Thread Starter
Sleep mode
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 .
-
Jan 17th, 2004, 03:48 PM
#2
Frenzied Member
what type of file format is it?
to read bytes, u need to use StreamReader class
-
Jan 17th, 2004, 05:58 PM
#3
Thread Starter
Sleep mode
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 ???
-
Jan 17th, 2004, 08:15 PM
#4
Hyperactive Member
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
-
Jan 18th, 2004, 04:26 AM
#5
Thread Starter
Sleep mode
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 ?
-
Jan 18th, 2004, 08:26 PM
#6
Frenzied Member
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%
-
Jan 19th, 2004, 02:22 AM
#7
Thread Starter
Sleep mode
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 ?
-
Jan 19th, 2004, 09:48 PM
#8
Frenzied Member
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
-
Jan 19th, 2004, 10:51 PM
#9
Thread Starter
Sleep mode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|