Solution: Working with Files
See the solution of how to read data from files in addition to STDIN.
We'll cover the following
Solution explanation
First we check whether the user has provided arguments to read from STDIN
or not:
Get hands-on with 1400+ tech skills courses.