I write a small C program to open a file, and read each line of it.
But how can I remove the "0x0D0A" at the end of each line?
here is my code:
while ( fgets(line, MAXCHARS, fp) != NULL)
printf("line: %s", line);
Indeed, I want to check each line and compare its value..
if (line == "my str")