Page 1 of 1

read a file in cd

Posted: Mon Mar 22, 2004 12:28 pm
by lezy
I am studying the libcdvd.in its sample,it open the "system.cnf" use string "cdfs:system.cnf".buf I found that some cd can not be read like that.
when i open file with this path,it return -1.then I try "cdrom0:system.cnf",can I found some cd can be read.
In addition,when I open the "system.cnf" in a cd, I read it, but the string returned can not be read,it is not ascii.

Posted: Mon Mar 22, 2004 2:47 pm
by mrbrown
What exactly is your question?

Posted: Mon Mar 22, 2004 3:54 pm
by lezy
I want to read the "system.cnf" in the cd.and i use
fioOpen("cdfs:/SYSTEM.CNF",O_RDONLY) to open the file,but in some cd,this way is not work,and return -1.
then I use fioOpen("cdrom0:/SYSTEM.CNF",O_RDONLY),the result is similar.
I want to know how I can open the file "system.cnf" in a CD.

Posted: Thu Jun 17, 2004 6:49 am
by slayer
the system.cnf is opened by itself when the cd or dvd boots to give an elf path.

Posted: Thu Jun 17, 2004 8:39 am
by ole
Did you try CDVD example program (the one that shows the CD-ROM directory) ? What this program shows you when the CD is inserted? Is file system.cnf visible? Are any other files visible? Can you open other files? Didy you inintialized cdvd ?