Hi everyone! I have a text file containing data as shown below: ABC 04885423 04886522 048809876 4666324557677879 5754246789532123 DEF 4321234567897654 5434456434565211 GHI 0466643 089876665 0987643349 ABC 097457738 73638933 03988833 The string 'ABC', 'DEF', and 'GHI' is like a group header. What I need to do is this: I need to read in the data and separate them into different datasets based on the header the are under. For example, when i read the 1st header which is 'ABC' the 5 observations under it will be written to a dataset, say data1. Then when i hit the 2nd header which is 'DEF' the 2 observations under it will be written to another dataset, say data 2. Same goes for 3rd header. When i come to the 4th header, which is 'ABC', the observations to be added to dataset data1 if possible. Thanks in advance!
... View more