Hi all,
In C, to read a line from a file, we need to allocate some fixed length of memory first. However, if the line is longer than the length of the allocated memory, it can't be read correctly.
Does anyone have codes that can read in a line of unknown length?
Thank you very much!