I want for main function in c program, read argc and argv from file.
How to read argv and argc from file in C language?
For example:
./prog --test=cpu --prime=1000 run
Change to:
./prog file.txt
File.txt is:
--test=cpu --prime=1000 run
Prog is a very big program.
You don't need to change the program, you can just do something like this:
(assumung bash or similar shell).