How to use fgets if you dont know the number of characters to be read.
- by vette982
I need to read a file and send the text from it to a string so I can parse it. However, the program won't know exactly how long the file is so what would I do if I wanted to use fgets, or is there a better alternative?
Note:
char * fgets ( char * str, int num, FILE * stream );