On Mon, 2010-01-18 at 15:33 -0800, Clive Page wrote:
> Many compilers, including gfortran and g95, support a function GETCWD
> which will return the current working directory i.e. the default path.
> The GETCWD function arises from Unix I think, but the GETCWD function
> works well enough on Windows and Unix-like systems (I just checked),
> so it is semi-portable.
I put all such things into a "machine" module to hide their
nonportability from the rest of the program. I'd also put the guy that
composes the full path name from the path and file name in that module.
--
Van Snyder | What fraction of Americans believe
[log in to unmask] | Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.
|