Path: chuka.playstation.co.uk!news From: gwald Newsgroups: scee.yaroze.programming.libraries Subject: can anyone see me? Date: Mon, 15 Jan 2001 02:35:09 -0800 Organization: PlayStation Net Yaroze (SCEE) Lines: 72 Message-ID: <3A62D25D.26E2AF3C@start.com.au> Reply-To: gwald@start.com.au NNTP-Posting-Host: wdcax2-221.dialup.optusnet.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en Hi , I am trying to read the CDROM with the ANIS C functions open() read() lseek()... Here is what I am trying to do. /********************** siocons test ************/ #include #include main() { int fd,ret; char text[1000]; char f[] = "cdrom:\\DATA\\SOUND\\SAMPLE1.SEQ;1"; // notice the cdrom: ! printf("trying to open %s\n",f); fd = open(f,O_RDONLY); if(fd > 0) printf("open worked fd = %d\n",fd); else { printf("open failed fd = %d\n",fd); return; } printf("trying to read %s\n fd = %d\n",f,fd); ret = read(fd,&text,999); printf("ret = %d\n",ret); text[999] = 0; printf("File <%s> CONTAINS \n<%s>\n",f,text); close(fd); } This compiles but hangs when it hits fd = open(f,O_RDONLY); When this is ran using char f[] = "\\DATA\\SOUND\\SAMPLE1.SEQ;1"; // (no device - cdrom: ) it says that - \DATA\SOUND\SAMPLE1.SEQ;1 is not a device then it displays all devices available eg bu: ,tty:, cdrom: and exits. What is the correct device name for the cdrom eg cdrom??: I really don't want to use the CdlFILE functions! Has anyone got these functions working on the cdrom before? What did I miss? mgarcia (gwald)