Jun 7, 2005 #1 werjocks Programmer Oct 27, 2003 24 US how do I get a string containing the present working directory in fortran?
Jun 8, 2005 1 #2 xwb Programmer Jul 11, 2002 6,828 GB A bit of a crap method Code: character*256 whereami call system ("pwd > pwd.txt") open (10, file="pwd.txt", status="old") read (10, '(A)') whereami close (10) print *, whereami Upvote 0 Downvote
A bit of a crap method Code: character*256 whereami call system ("pwd > pwd.txt") open (10, file="pwd.txt", status="old") read (10, '(A)') whereami close (10) print *, whereami