From: "Campbell, Rolf [SKY:1U32:EXCH]" Newsgroups: comp.os.msdos.djgpp Subject: Re: Directory access - easy method? Date: Wed, 18 Aug 1999 16:21:36 -0400 Organization: Nortel Networks Lines: 20 Message-ID: <37BB15CF.FB9341D4@americasm01.nt.com> References: <37BAF973 DOT 6D5C AT ns DOT sympatico DOT ca> NNTP-Posting-Host: bmerhc00.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Klaas wrote: > In allegro, in any of the "load_file" function, I can't specify a > directory, or else the file will not be found. What are other > alternatives? > > eg. > > load_midi("temp.mid"); //works fine > load_midi("midi\temp.mid"); //returns NULL pointer Use a forward-slash "/" or a DOUBLE backslash "\\" to deliminate directory names. "\t" is considered a tab, so you are trying to load a file called "miditemp.mid" and that file doesn't exist... -- -Rolf Campbell (39)3-6318