Hi,
How can i find a string in a file?
I have attempted this function but with no luck. I know why it doesnt work but i am unable to solve this problem.Code:int search(*emp_id) { int flag=0,len; len=strlen(*emp_id); rewind(fp); while(fp!=EOF) { if(*fp==*emp_id) { flag=1; fp++; emp_id++; continue; } else { flag=0; fp++; continue; } } }
Also i would like to know how can i change color of the text to be displayed on the screen and how to keep the text flashing on the screen.