I want to know the file-type of html file present inside a tar file. I have stored theis tar file in a buffer and i know that i can know the size of the file at location buffer[124] but i want to know is - (1.) I want to know that if the file present in tar is HTML file ?? Any idea how to do that ?? I think that i can know the file form Link Indicator(but i am not sure). could any one explain please how to do that ??
(2.) Once if i am sure that i have html file inside the tar file then i want to staotr the contents of these html file in the tar file.
There are many other files also present in tar file (not only html file-Please attention on this line, so i don't know the loctaion of the html file)
Any idea how to achieve this ??