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:
1235690,9087657788888770000,89977553223456789\n
I wouldn't know how max characters in the file, is there a way to tell C to just read until \n?