Hello Everyone!
I am due with an assignment that I just can't seem to acomplish. So here's the deal: I get a file with the following structure:
TyP_1 TyP_C2 TyP_C3
ORDER
Nr_rec
rec1_field1 rec1_field2 rec1_field3
rec2_field1 rec2_field2 rec2_field3
Typ_x can be S for string N for numeric or C for character
Order is a numeric (1,2,3) by which the sorting will take place
Nr_rec is the number of data lines below Nr_rec
What I have to do is sort them acording to these specifications,and output to out.txt.
Any help would be greatly appreciated. :)