I\'m a beginner programmer so this question might sound trivial: I have some text files containg tab-delimited text like:
A
B
C
D
E
<
I think the algorithm goes like this:
keep track of the current indentation level (by counting the number of tabs per line)
if the indentation level increase: emit
if the indentation level decreases: emit
if the indentation level remains the same: emit
Putting this into code is left to the OP as exercise