LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Writing a program which reads ISO files ! (https://www.linuxquestions.org/questions/programming-9/writing-a-program-which-reads-iso-files-906049/)

bnka 10-02-2011 08:06 AM

Writing a program which reads ISO files !
 
Hello all,

Actually , I'm new in data programming especially the C language .
I have a project in which I have to write a program which reads ISO files . And now , I'm really lost and confused because I don't know how to start working , so I'm wondering if someone would help me and show me the process .

Thank you ,

Doc CPU 10-02-2011 08:49 AM

Hi there,

Quote:

Originally Posted by bnka (Post 4488017)
Actually , I'm new in data programming especially the C language .

and you're new to explaining a problem to others, are you?

Quote:

Originally Posted by bnka (Post 4488017)
I have a project in which I have to write a program which reads ISO files . And now , I'm really lost and confused because I don't know how to start working , so I'm wondering if someone would help me and show me the process .,

What exactly is it that you call ISO files? Are we talking about ISO-9660 CD or DVD images?
If so, what du you mean by "reading ISO files"? Du you have to extract the contents, i.e. particular files?
Do you have problems with accessing the image file in the first place?

Please be more specific so that someone *can* help you at all.

[X] Doc CPU

bnka 10-02-2011 09:45 AM

Quote:

Originally Posted by Doc CPU (Post 4488071)
Hi there,



and you're new to explaining a problem to others, are you?



What exactly is it that you call ISO files? Are we talking about ISO-9660 CD or DVD images?
If so, what du you mean by "reading ISO files"? Du you have to extract the contents, i.e. particular files?
Do you have problems with accessing the image file in the first place?

Please be more specific so that someone *can* help you at all.

[X] Doc CPU

Sorry for being so vague about my problem and sorry for english too,
Actually , I have to write a program that explores the content of an iso 9660.
more precisely, my program should behave like this :
bash$ ./myisoread file.iso
once the file is "mounted", I should have a shell that opens and handles several options, for example "ls"
to list the content of the iso file:
> ls
file1.txt
file2.txt
etc ..

I don't really know from where to start !
thanks by advance !

amani 10-02-2011 09:57 AM

If you are allowed to use 'mount', then it is easy

bnka 10-02-2011 10:17 AM

no I'm allowed only to use low level fonctions like mmap, fprintf, fflush

dwhitney67 10-02-2011 10:45 AM

Quote:

Originally Posted by bnka (Post 4488124)
no I'm allowed only to use low level fonctions like mmap, fprintf, fflush

Low-level?

amani was probably referring to the mount() function.
Code:

man 2 mount


All times are GMT -5. The time now is 04:03 AM.