Question
August 17, 2007 at 08:42 PM
vishalluthra

Extracting Text from a Text File

by vishalluthra . Updated 19 years, 2 months ago

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?

This discussion is locked

All Comments