Ian Collins <ia******@hotmail.comwrites:
paras sharma wrote:
> I want to access the data inside a ISO-9660 file (which is saved
in hard disk) through C. I am to make a program to read it.
If your file is an image, use an OS specific means to mount it and read
it as a filesystem. Ask now on an OS specific group.
That's almost certainly the best approach (i.e., use software that's
already been written to do this).
If you know the definition of the ISO-9660 format in sufficient
detail, you can probably write a portable ISO C program to do the job,
using fopen(), fread(), et al.
To the OP (Original Poster): You said "I am to make a program to read
it". Why? Is this a class assignment? If not, why does it have to
be in C, and why do you have to reinvent it yourself?
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"