Im trying to read in a txt file but i need i need to know how many lines there are in it before i set my array size,
Do we have a C function that will go off an read how many lines there are in the code?
I was thinking of using frets and incrementing a count every time frets returns but that means i have to run it in a loop which still restricts me to a max size
How to i figure out how many lines are in a file with knowing nothing else?
basically i need to read a file of unknown size that can be any size and determine how many lines are in it