- Exercise

Let's solve an exercise in this lesson.

We'll cover the following

Problem statement #

All credit goes to streams and the getline function when it is quite comfortable to read a file.

  • Write a program that reads a file line by line.

We need to write our file name using the STDIN button first, then press the RUN button.

Get hands-on with 1200+ tech skills courses.