...

/

Count Words and Lines in a Text File

Count Words and Lines in a Text File

Learn to count words and lines in a text file by getting input on the command-line interface.

We'll cover the following...

Problem

Write a program that reads a file path from the command-line argument and counts the number of words and lines in that file.

Access this course and 1400+ top-rated courses and projects.