forum-msg-id-130677-edit

Original date:2016-12-30 11:50:19 Edited by: euphoric Subject: Why is current_dir() Not the Directory my Program is Run From?

I'm right-clicking my ".exw" file in Windows and choosing, "Run with Euphoria for Windows interpreter."

When I do that, current_dir() returns "c:\windows\system32," which isn't where euiw or my source is located.

I'm running into a problem with read_lines( "myfile.txt" ) because it's apparently looking in current_dir(), and "myfile.txt" isn't there.

I don't want to have to chdir(). I expect it to just find it in the source-containing folder.

What should I do here?

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu