[Solved] How can I read and process this kind of file [closed]


You can do this with file operations in c,
i am just giving you hints,

FILE *pFilePtr; // file pointer(handle of file)

pFilePtr = fopen(argv[1],"r"); 

//define buffer to store data read line by line data
char buf[32]={0};

//Now you can run a while loop to read entire file

with fread() to get whole first line(until ‘\n’)

while(!feof(pFilePtr))

{

if(NULL != fgets(buf,32,pFilePtr))

// perform string operation on buffer to extract letters and digits

// and according to that call functions you need

}

2

solved How can I read and process this kind of file [closed]