I have a text file contains 45 lines. I need to read the text file line by line based on the counter increment function.
Example: If we read the first line of a line then it prints count value is 1 and so on...
please provide me some good examples.
Try this: