Write a program that given a file name and a word outputs each line that contains that

Question:

Write a program that given a file name and a word outputs each line that contains that word together with the line number.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: