I have a file and I want to read this file using C program using file operations. Then i want to take parameters from that file. Lets say nalu_type=x. So whenever i detect the s
If the format is nalu_type = x
fscanf(fp, "%s", buf); if !strcmp(buf, "nalu_type") { fscanf(fp, "%s", buf); if ( ! strcmp(buf, "=")) fscanf(fp, "%s", buf); else printf("\n Not a valid format"); }
Repeat the above if until end of file.