Hi, i need to search for a string in a file. I am trying to use memcmp() but i have never used this before and have no idea how it works. Looking at its description it compares 2 blocks of memory but im not sure this is what i want to search for a string in a file. I have also found memchr() but this searches for a character not a string. Can anyone help me out by pointing me in the right direction?