Check out example codes for "get input from command line and run command in c++". It will help you in understanding the concepts better.

Code Example 1

> args my_file.txt
Line fab
Line fab
Line edc

Learn ReactJs, React Native from akashmittal.com