Reading flat file and generating tagged file
I'm a c# newbie and wish to read an i/p flat file of the form:
A 1 2 10
B 4 10 0
C 10 3 0
C B A
After reading it I wish to generate a tagged file fo the format:
<TAG tagID = 'A'>
<SB sID = 'A' eID = 'B'/>
Now the SUB tagis filled up only if the cell-value in the read item is non-zero...i.e. there will be no entry as sID= B eID = A & sID = C and eID = A...
Could anyone please give me clues, urls on how to approach this?
Will XMLWriter be of anyhelp?
Appreciate your guidance,