Path: chuka.playstation.co.uk!news From: James Shaughnessy Newsgroups: scee.yaroze.beginners Subject: Memory card I/O. O_CREAT? Date: Sun, 22 Feb 1998 13:51:00 +0000 Organization: Bacardi Ferrari V12 Lines: 28 Message-ID: <34F02D44.3294@manc.u-net.com> NNTP-Posting-Host: manc.u-net.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) Alrighty then, here's the situation: I have just started out trying to use the memory card and run into a slight hitch. The manual talks of macros O_CREAT and O_RDONLY but I can't get them to work. I've searched through all the header files for definitions to no avail. In FS.H there's defines for READ etc. but I obviously need the exact value for O_CREAT in order to create a file on the mem card. In creating a 1-block file called 'MyFilename', the way I understand it is this: int fd; // File descriptor char *fname = "bu10:MyFilename"; // bu10: mem card slot 2 fd = open(fname, O_CREAT|(1<<16)); close(fd); Writing data is something I'm not sure about either (but I'll sort that out using ye-olde tried and tested trial and error technique) and what about making my own icon (possibly animated) for the file? Please help, or point me in the right direction! Cheers, Jim -- ----------------------------------------- James Shaughnessy james@manc.u-net.com http://www.netyaroze-europe.com/~shaughnj -----------------------------------------