Path: chuka.playstation.co.uk!news From: "Will" Newsgroups: scee.yaroze.programming.libraries Subject: Re: can anyone see me? Date: Tue, 24 Apr 2001 12:14:24 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 80 Message-ID: <9c3jn2$bu47@www.netyaroze-europe.com> References: <3A62D25D.26E2AF3C@start.com.au> Reply-To: "Will" NNTP-Posting-Host: ALagny-101-1-1-160.abo.wanadoo.fr X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Hello MAN ! I see you ! But infortunatly I'm beginner so probably I can not help you ! "gwald" a écrit dans le message news: 3A62D25D.26E2AF3C@start.com.au... > 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) >