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.
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.
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 ?