Passing arguments to fortran exec
Passing arguments to fortran exec
(OP)
Hello,
my executables read input files, calculate and write output files.
I would like to pass the name of the input file as an argument on the command line environment.
I.e.:
c:\>Myprogram c:\input_file.txt
Is it possible with FORTRAN?
Thanks in advance!
Vince
my executables read input files, calculate and write output files.
I would like to pass the name of the input file as an argument on the command line environment.
I.e.:
c:\>Myprogram c:\input_file.txt
Is it possible with FORTRAN?
Thanks in advance!
Vince
RE: Passing arguments to fortran exec
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Passing arguments to fortran exec
command_argument_count()
call get_command_argument
call get_command
for example:-
CODE
www.Roshaz.com
RE: Passing arguments to fortran exec
Thanks!