I don't know much about file handling in C. In my file.txt
the first row is like this:
25031470760,1234
I want to read them seperately such as:
FILE* filep = fopen("myfile.txt","r");
char id[20];
int password;
fscanf(filep,"%s,%d");
I want id = 25031470760
and password = 1234
but when i print them:
printf("%s %d",id,password);
the output is ridiculously this : 25031470760,1234 2201625031470760,1234 22016
I would be very appreciated to your help.