Does anyone here know how to search for a string in a plain text file without using getline()? The reason I am asking is because the string I am looking for can wrap around lines, and getline() only reads lines whole. So for example, the text
has no line that includes the word RAG, but it exists as the end of zebRA and the beginning of Giraffe. All the implementations I've found for finding a string in a plain text document use getline() but that function is not applicable here.