I want to get a string from file terminating with another string. As
We have data file data.txt and the text in it is -
kkasdasjdnajsdnjasdasd#kjlkldasfkldsklfdsklfk##skjaskjdajdjasdasdjkas##
i want to get string from this file ending with "##".
Please provide me the code that i can use for this purpose in c++. (fstream)
Last edited on
cjmalloy, the code you have written is not giving me the right answer. it stops, while executing it. please check and provide me the correct code.
It does if you want the second substring.
Last edited on
Ooops...Sorry...didn't know that