I need to write a function to read a string from a file with the following conditions
- the string must be read entirely in one pass before the EOF or EOL character
- it is impossible to allocate in advance a large buffer in which the readable string is guaranteed to be placed
realloc()cannot be used
Nothing better, moreover, how to read character by character and shove it onto the stack, did not invent it. Are there any other options? Maybe using string.h ?