- #1
Aerandir90
- 1
- 0
Hello all,
I wanted to know if there was a way to read in numerical data on the same command line on which you execute a file.
I know you can do that for i/o files like:
test.exe < file1.in > file2.out
But I wanted to know if there's some similar notation that can be used for floating point numbers.
Supposing I have this simple program that reads in 2 numbers and outputs their product.
I want to be able to do something similar to the above example in the command line:
test.exe < 3.2 87.3
Hope what I'm asking is clear enough..
I'm very new to Fortran so I'm not too sure about stuff like this
Thanks!
I wanted to know if there was a way to read in numerical data on the same command line on which you execute a file.
I know you can do that for i/o files like:
test.exe < file1.in > file2.out
But I wanted to know if there's some similar notation that can be used for floating point numbers.
Supposing I have this simple program that reads in 2 numbers and outputs their product.
I want to be able to do something similar to the above example in the command line:
test.exe < 3.2 87.3
Hope what I'm asking is clear enough..
I'm very new to Fortran so I'm not too sure about stuff like this
Thanks!