Hi,
I need to find words in a specific file, but the word may be separated with some spacing, example:
My keyword is bomb:
the text in my file is:
osdfosdjfsdf fdjk adoj faejfkj vdfjjfdkjsdfkgjsfdpg fjgjsfpkdgjps jegfesjfgjdsfpkgjsdf dsjfgjsdfpgj baormdsfkpg ppjerwerwe bqwosdmerb
In this example there are 2 cases:
Case 1:
Spacing 1.
baormdsfkpg - b.o.m
But isn't the right spacing
Case 2:
Spacing 2
bqwosdmerb - b..o..m..b
Is the right spacing
But, I have a big problem, my file is too big, so I can't pass to the memory, that is, I need to do all I need in the own file.
I want to know if there is a way to 'jump' (with a specific spacing) the letters or ideas to doing this.
Note: I thought use fread(&ch, sizeof(char), i, fp); where i would be my spacing.
Thank you.