- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello
I have a fortran code and and its executable file. I am using java to run the executable file. Now my problem is to pass some variables from java to exe file. Is there any way I can do it.
One possible way was to write the values in a file and read that file but this is not possible in given circumstance so I am looking for another option.
The other option I am trying to explore is like passing the string from java containing the exe file name and arguments as given below
icfm.exe -I infile.txt -O outfile.txt
Now I have to write a fortran code that can read this line from commnad prompt and take input from infile.txt and write final results to outfile.txt
Thanks in advance
Ritesh Agrawal
I have a fortran code and and its executable file. I am using java to run the executable file. Now my problem is to pass some variables from java to exe file. Is there any way I can do it.
One possible way was to write the values in a file and read that file but this is not possible in given circumstance so I am looking for another option.
The other option I am trying to explore is like passing the string from java containing the exe file name and arguments as given below
icfm.exe -I infile.txt -O outfile.txt
Now I have to write a fortran code that can read this line from commnad prompt and take input from infile.txt and write final results to outfile.txt
Thanks in advance
Ritesh Agrawal
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is GETARG not working for some reason?
Tim
ps,
I have actually done this way back in the jurassic w java 1.0beta and MSPS4!
Tim
ps,
I have actually done this way back in the jurassic w java 1.0beta and MSPS4!

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