[f77] Choosing a complete path

From: Jack Malmostoso (jackmalmostoso_at_freesurf.ch)
Date: 05/20/04


Date: 20 May 2004 09:13:26 GMT

Hi there,

I have a problem with my program.
I am trying to make it executable from any folder in the HD, and it should
see every file in the system.
So I created this:

character*50 path
character*8 file
character*58 complete

complete = path//file

but if the user specifies a path shorter than 50 chars, obviuosly fortran
completes them with blanks, leading to

c:\jkasdf\loahf\_______________________\file

and obviuosly I get "no such file or directory".

I was thinking about formatting to the right the path variable, so that it
should read

_______________________c:\jkasdf\loahf\file

and this should work, but I don't know how.
Or, have you got good ideas on how to solve this?
Thank you so much!

-- 
Best Regards, Jack
Linux User #264449
Powered By Fedora Core 1