Taking input from a file as an command line argument

I want to take input from command line as hello.cpp <input.txt .
How can I do this??

Hey ,you can search on YouTube as per your requirements, they will also tell you about extra packages required. Whereas it will also be better to understand. Hope this would help you :grinning:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.