In this video, we will be writing a C Program to count the number of lines in a file. We will be using two approaches to do the same.
Approach-1: Using fgetc() method
Approach-2: Using fgets() method
C Program to count number of lines in a file: https://www.geeksforgeeks.org/c-program-count-number-lines-file/