Re: which directory?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu