How to count the lines in file ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to count the lines in file ?

I have file and i want to cout the number of line that have string that the user will input it.

28th Sep 2018, 12:59 PM
Mona Mohamed
Mona Mohamed - avatar
1 Answer
+ 1
I have little idea of what you speak of, because I'm new around here, but I'll try and be a bit helpful... is Ctrl + F useful in such situations? Or is what you're trying to do is get the program to find that out for you?
4th Oct 2018, 7:53 PM
Juan Santos
Juan Santos - avatar