URGENT! I need help with this function..beginner
Posted on 1999-07-06
I need to read a char from a file. If char is equal to the first char of the string that add one to counter. Read next char with the second char of your search string. If char not equal reset counter to 0 and move char into ostream .if equal to the length of your searchString than found the string in the file.
call a function to find out what needs to be replaced by that special string.
CString searchstring = "<!--$$(";
int len = searchstring.Getlenght();
int counter = 0;
I'm not sure how to do this could someone give me an example...Remember this is html so I'm not sure if '\0' are present...
Thank you in advance