Extracting Text from a Text File
Hi guys,
I am stuck for developing a logic, Please help me. Below is the Scenerio....
-------------sample text file-------------
I have a text file like this...
01hjbdksfsfsndfsjfhbwdefw...
02kjfkwdfkkdfkfkwk
03ksjfkjfrbgfejkrgfehj
04sdbkjdfkjrfr
03kjnfkejrkejg
04kjdfkjekjgkejg
05kjbfeebgrjkebrgekg
02bdfhjrfehjrgfjrgebrkg
03kjgkjkjtg
04kljgtkb mgn bk
05ltrermtnljkb
----------------------------------
if u look at it, u will find that it is divided into batches(from row 02 to 05 constitute single batch)and i have mentioned two batches.
The real task is that i have to process batch after batch looking if there is any error in any batch, discard that batch and move toward another batch.
Till now i am trying to develop logic using stream reader but with that its complicated to handle errors.
can u suggest something?