Date: Mon, 4 Aug 1997 15:16:48 -0400 (EDT) From: "Art S. Kagel" To: Joshua Eckstein Cc: djgpp AT delorie DOT com Subject: Re: File Paths and Directories In-Reply-To: <5rllpr$5vc$1@excalibur.flash.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 29 Jul 1997, Joshua Eckstein wrote: > I'm trying to find out how to specify a filename as not to be > drive/directory specific. In other words, if someone puts the executable in > [xfolder] and I have established a branch directory for data, it will look > in [xfolder]\data. Like so: > > LoadPic ("\data\example.pic", ...); Leave off the lead slash or back slash (use slashes for portability DJGPP does not care) and make that: LoadPic ("data/example.pic", ...); This is a path relative to the applications current directory. So if the user has CD'd to [xfolder] or the program chdir()'s to [xfolder] this will always work. Art S. Kagel, kagel AT bloomberg DOT com