Hi all,
I am new to C++ and would like to get some help here.
I am trying to use C++ to read text files. From there, I wish to capture strings that coincide with certain declared strings.
For eg. Using getline(), I have a whole line of string from the text file. From there, I want to check if in that line, there exist "Gross Margin" in it. If it exist, I will want to capture the whole string and output it to another separate text file. Moreover, I need to check for the different type of case for Gross Margin. "Gross margin", and "gross margin" has to be checked together to get the result.
Hope I can get some help soon. Many thanks in advance.