Can Someone help me how to read/understand this part of the code. The one that's in red. Thank you.
[code] while ((n = rdfile.fgets(line, sizeof(line))) > 0) {
int line; [/code]
void rateOne() {
char line[10];
int n;
// open test file
SdFile rdfile("test.txt", O_RDONLY);
// check for open error
if (!rdfile.isOpen()) {
lcd.print ("error");
}
while ((n = rdfile.fgets(line, sizeof(line))) > 0) {
 int line; [code]
while ((n = rdfile.fgets(line, sizeof(line))) > 0) {
fgets() is called to read a string a line of text. fgets returns the number of characters read and setting "n" to that value, "n =". the condition "> 0" is true and the while continue to execute as long as one or more characters are read. fgets() returns EOF (-1) at the end of the file