Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
4141 Points
931 Posts
Feb 10, 2012 09:45 AM|LINK
Declare a boolean variable say 'boolIsListOpen' with default value as 'False'.
Now, while reading each line, when the string '<list>' will occur, set boolIsListOpen = True
And, when '</list> will occur, set boolIsListOpen = False
For replacing, use the code in my previous post. But, based on the value in the boolIsListOpen.
If it's True then only replace the values in the string.
Sum8
Contributor
4141 Points
931 Posts
Re: convert the text format to another format
Feb 10, 2012 09:45 AM|LINK
Declare a boolean variable say 'boolIsListOpen' with default value as 'False'.
Now, while reading each line, when the string '<list>' will occur, set boolIsListOpen = True
And, when '</list> will occur, set boolIsListOpen = False
For replacing, use the code in my previous post. But, based on the value in the boolIsListOpen.
If it's True then only replace the values in the string.
Sumit Pathak
------------------
ThisPost = Helped == True ? "Mark As Answer" : "Elaborate your problem in more details"