Oct 21, 2008 at 8:41am
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 Oct 21, 2008 at 8:43am
Oct 22, 2008 at 4:42am
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.
Oct 22, 2008 at 8:34am
It does if you want the second substring.
Oct 22, 2008 at 10:15am
Last edited on Oct 22, 2008 at 10:27am
Oct 22, 2008 at 1:24pm
Ooops...Sorry...didn't know that