How to run an executable, and store the results in a file, with python or C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to run an executable, and store the results in a file, with python or C++?

20th Sep 2020, 2:50 AM
FeynMed
FeynMed - avatar
4 Answers
+ 1
Dear Ipang, I mean the output of the executable file. In fact, I wanna write in a file because I'm gonna use a loop, in order to get a set of data!
20th Sep 2020, 3:34 AM
FeynMed
FeynMed - avatar
+ 1
Ipang Ok. Thx for ur reply.
20th Sep 2020, 10:37 AM
FeynMed
FeynMed - avatar
0
Feynmed, Elaborate some more details in your thread Description; What results exactly are we talking about here? Did you mean the executable should write its output into a file rather then the screen? and what is the reason for writing to a file?
20th Sep 2020, 3:18 AM
Ipang
0
FeynMed For now I can only recommend you to the relevant chapters, in respect to each language. For basic file read/write operations these would be sufficient. https://www.sololearn.com/learn/CPlusPlus/1920/ https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2445/
20th Sep 2020, 4:00 AM
Ipang