- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page