- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At one time (long time ago), Iran a fortran executable file with a parameter as input after the executable file:
file.exe 10.3
where file.exe is the executable file, and 10.3 is some parameter input for theprogram. This command is in Dos windows.
How should I write the code in fortran thataccept the input as above?
I used
read(5,*) param
in the code and it waits me to punch the return keyandtype in10.3 manually.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Read about the GET_COMMAND and GET_COMMAND_ARGUMENT intrinsic functions.
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