Which method can be used to read one line at a time from a file in C?
I am using the fgets function, but it\'s not working. It\'s reading the space
You can use fscanf instead of fgets. Because fgets fscanf for characters including spaces but while using fscanf you can separately access to data saved in a file.eg there be a file having name class roll.now declare a string and two integers line.