[Solved] How to parse and arrange lines of a csv file based on matching word in C?
I could write the code to get the required output. Below is the code: #include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<fcntl.h> #include<string.h> int main(int argc, char ** argv) { struct filedata { char nation[8]; char content[50]; }; char line[100]; char *inputFile = argv[1]; FILE *input_csv_file; int iter = 0, c; char * tok; int count = 0; char … Read more