m.banner wrote:It would work best for me if the default location of file i/o were the same as that of the executable. But I see it's always my home directory, regardless of where the executable is located. Is this a change from the below post in 2020? And if so, can I redirect it, i.e., w/o including a path name in every open?
When you compile an executable, that executable is now subject to the rules and whims of the operating system, By default, an executable will access files, when no full, absolute path is provided, in the current working directory.
In Simply Fortran, when you launch an executable that was built as a project, the current working directory is set to the directory where the project file is saved (not the source file). If you haven't changed any Launch options, the executable will be run from the directory where the project file was saved.
If you're using the Compile and Run Current File feature in the Build menu, the resulting executable should be located in and run from the same directory where the source file is found. Even if you have this file in a project, that menu option will cause the working directory to be the same as the source directory.
I'm not sure what the circumstances are in your case, though. Where exactly is the executable being built? And how are you building the executable, via project?
Jeff Armstrong
Approximatrix, LLC