I had programmed something to read a file, but first it needs to know how many lines are in the file total. To get the amount of lines in the file I used this code:
while ($line = )
That code is so big and it must take up much processing.
Can anybody provide me with a function that will get the amount of lines in a file?
And can somebody also provide me with a function that will set the file pointer to skip lines and read at a specified point?