LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2011, 09:06 AM   #1
bnka
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
Post 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 ,
 
Old 10-02-2011, 09:49 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by bnka View Post
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 View Post
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
 
Old 10-02-2011, 10:45 AM   #3
bnka
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Doc CPU View Post
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 !
 
Old 10-02-2011, 10:57 AM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
If you are allowed to use 'mount', then it is easy
 
Old 10-02-2011, 11:17 AM   #5
bnka
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
no I'm allowed only to use low level fonctions like mmap, fprintf, fflush
 
Old 10-02-2011, 11:45 AM   #6
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,539

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by bnka View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing a program which reads ISO files ! bnka Linux - Newbie 2 10-02-2011 09:55 AM
program vol_id reads sectors at end of media Skaperen Ubuntu 0 07-17-2009 12:21 AM
what files a program reads Y0jiMb0 Linux - Software 4 08-04-2005 06:05 PM
ISO Files?? WHat Program? Prometheuz Linux - Newbie 6 12-04-2004 07:27 PM
which daemon or program watches writing files on floppy disk? norman68 Linux - Software 2 04-04-2003 08:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration