Searching Into Files

This is a discussion on Searching Into Files within the C Programming forums, part of the General Programming Boards category; Hy all
this is my first real app
and i have a problems in file searching
this is the source ...

and <Salem>
>gets(data.addressl);
i read the faqs is that ok now ?
__________________________________________
fgets(data.last_namel,sizeof(data.last_namel),stdi n);|
__________________________________________
thanks again

beacuse u have made a mistake in comparing the string. After u get a line from the file.You will have to check for the whole fine for the key work.

But instead u check only few starting char which will never reach the end. And more over why do u want to open the file in a read mode when u are trying to read data in text mode. Open that in read mode