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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line arguments 2

Status
Not open for further replies.

frothytoad

Technical User
Aug 1, 2003
32
0
0
US
Hi all,

Does anyone know if it is possible to pull in arguments from the execution statement of a Fortran 90 code?

For example:

C:\> MYPROGRAM inputfile.in outputfilename.out

Working...

Output sent to 'outputfilename.out'. Thank you for using MYPROGRAM.

C:\> _

One would normally expect such a thing in the PROGRAM statement (PROGRAM MYPROGRAM(strg1, strg2)), but...

Thanks for any suggestions!

 
one solution is to read an input file containing the name of input output file

another way is

C:\Myprogram < inputfile.in outputfile.out

I m using such a program... but I don t know exactly how to use these parameters in the code

hope this can help you a bit

flav
 
GETARG was exactly what I was looking for. Thanks!!

-- f
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top