Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

input data files

Deleted_U_Intel
Employee
545 Views
I have tried two or three options for getting input files for my source code in a position where they can be read. Do I create a new file and edit it, saving it with the filename?
Thank you. Susan Merriam
0 Kudos
2 Replies
anthonyrichards
New Contributor III
545 Views

Please add a little more information as to what you are trying to do.

Do you wantyour application to have access to named fileswhen you start it? If so, you add them on the command line and add code to your application to use theroutine GETARG to access the filenames. Do what you want with them after that. HTH.

0 Kudos
TimP
Honored Contributor III
545 Views
GETARG() is a commonly used, but non-standard, function for reading the command line. The next Fortran standard provides a standard interface. Lawson Wakefield implemented these standard library functions in terms of the facilities of all the compilers he supports,including Intel:http://www.winteracter.com/f2kcli/
A common use of this is to allow filenames to be specified on the command line.
0 Kudos
Reply