Searching for a sting in a CFile ?
-
Is there an easy way to search a CFile for a string and get the index?
-
Is there an easy way to search a CFile for a string and get the index?
USAFHokie80 wrote:
Is there an easy way to search a CFile
No you have to search the file line by line
USAFHokie80 wrote:
get the index
The index based on what?
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
-
USAFHokie80 wrote:
Is there an easy way to search a CFile
No you have to search the file line by line
USAFHokie80 wrote:
get the index
The index based on what?
Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Individuality is fine, as long as we do it together - F. Burns
the index for a file position where the string begins.
-
Is there an easy way to search a CFile for a string and get the index?
-
Is there an easy way to search a CFile for a string and get the index?
Yes, assuming you put the contents of said file in a searchable buffer
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch