mkdir is the the function. man 2 mkdir: http://www.hmug.org/man/1/mkdir.html Have fun, Jason > -----Original Message----- > From: gameprogrammer-bounce@xxxxxxxxxxxxx [mailto:gameprogrammer- > bounce@xxxxxxxxxxxxx] On Behalf Of Kevin Jenkins > Sent: Saturday, July 10, 2004 11:23 AM > To: gameprogrammer@xxxxxxxxxxxxx > Subject: [gameprogrammer] Linux equivalent of CreateDirectory > > I need to do an fopen(path, "wb") where path includes directories that may > or may not exist. On windows I use CreateDirectory to create the > directories first, then do the fopen for the file. > > What is the Linux / Unix equivalent? > > > > --------------------- > To unsubscribe go to http://gameprogrammer.com/mailinglist.html > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.714 / Virus Database: 470 - Release Date: 7/2/2004 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.714 / Virus Database: 470 - Release Date: 7/2/2004 --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html