Re: which directory?
- Posted by fretinator at smallvue.com Jan 15, 2002
- 427 views
The norm is to use your application directory and append it to you path for the file. So in VB one would use, App.path + "/filename.ext". I'm not real familiar with Euphoria, so I assume you would use the current_dir() function and append the filename. On Tue, 15 Jan 2002, John McAdam wrote: > > Hello everybody, > So I write a little program and it is in my D:\euphoria\prog\ directory. I > want to > open a text file which I have also put in the same directory. I open my > program > by clicking on it and it comes up in the editor, but when I run it, it can't > find my > text file unless I put in an explicit "chdir(D:\euphoria\prog\)" first. That > is ok for > me, but what about somebody who copies my program (and file) to "e:\wherever\ > " > on their computer? I know I have downloaded programs from the users > contributions > page and they won't run because of this problem. Kinda frustratin'. If I ask > what > the current_dir() is, it says "D:euphoria\". Why isn't it my *real* current > directory? > JOHN > > > >