I wrote a program in C to count lines in a txt file but it fails in some cases.
For example:
File1.txt- "Helloworld" - 0 lines
File2.txt- "He