Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pwd 1

Status
Not open for further replies.

werjocks

Programmer
Oct 27, 2003
24
US
how do I get a string containing the present working directory in fortran?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top