Hello
My Textfile Age.Txt is in following manner where data is copied from other sources
I am irritated to correct each record as per the output required
ie if one observes the numerical value of Age comes in previous line before word Age or it comes in next line after word Age. Would like to have the numerical value of age in the line of word Age
Any ideas for a suitable code
SamD
166
My Textfile Age.Txt is in following manner where data is copied from other sources
Would like to display in the below following mannerName Tom
Age 13
Name John
Age 15
Name Jack
16
Age
Name Michael
Age
12
Name Martin
Age 33
Name George
43
Age
These are just 6 records as mentioned above but there are more than 200Name Tom
Age 13
Name John
Age 15
Name Jack
Age 16
Name Michael
Age 12
Name Martin
Age 33
Name George
Age 43
I am irritated to correct each record as per the output required
ie if one observes the numerical value of Age comes in previous line before word Age or it comes in next line after word Age. Would like to have the numerical value of age in the line of word Age
Any ideas for a suitable code
SamD
166