I'm trying to read text file using fscanf() with %[]
specifier.
File like this one:
qwety, qwe<
qwety,qwety.... qwety
So, I need to read only text without any separator like comma, space, dot.. Looking for answer said something like that, but it's doesn't work properly: successfully read only first word and go to never ending loop
char buff[1024];
while(!feof){
fscanf(file, "%[a-z]", buff);
puts(buff);
}
What should I do to solve this?