Line by line I need to get the whole content in a line from a file. I have looked at fgetc, fgets. According to fgets, I need to specify max number of characters to read.
If I have file content like this:
I wouldn't know how max characters in the file, is there a way to tell C to just read until \n?