i have a text file like this
<start>user data<end><start >userdata<start >userdata<end>< start>userdata
i have to start reading from <start> and if i find corresponding <end >,then i have to delete that line from file i.e.from <start> to <end> including strings <start> and <end>.If for a given <start>, i dont find <end> then i have to keep that line in file .Here, user data can be any thing like int,char,string whatever.
These are some details
platform:redhat linux
compiler:g++
language:c++
regards
factfinder
<start>user data<end><start >userdata<start >userdata<end>< start>userdata
i have to start reading from <start> and if i find corresponding <end >,then i have to delete that line from file i.e.from <start> to <end> including strings <start> and <end>.If for a given <start>, i dont find <end> then i have to keep that line in file .Here, user data can be any thing like int,char,string whatever.
These are some details
platform:redhat linux
compiler:g++
language:c++
regards
factfinder
Comment