I'm wondering how can I make the following command works in any code. Can anyone give me an example.
Command:
[cpp_file_path] [input_file_1_path] [input_file_2_path] [output_file]
Can I use argv? Like something below.
Anyways, if you want to read in files, or write to them, without using the command line (I am not even sure, this works, I don't know a command line function that could help you), there are many possibilities.
And I saw that using that code I can open one file in the command line with this command:
[.exe] [other_file]
The [other_file] is saved as argv[1] and the executable file is stored as argv[0]. And I wish to open another file and write whatever I did in the code in the output file.
My command is something like this:
[.exe] [other_file] [another_file] [output_file]
Will this let [another_file] stored as argv[2] and [output_file] stored as argv[3]?