I have a text file containing following data:
2n10
B127 mg/dL 01:45 pm 3 of January
E83 mg/dL 10:03 am 3 of January
H97 mg/dL 11:05 pm 2 of January
K80 mg/dL 06:00 am 3 of January
P118 mg/dL 08:15 am 3 of January
S97
S80
S118
S81
S87
S85
S89
S82
S83
S127
a
And I want to read some (specified) data from this text file and then plot it. The data that I want to read and plot is:
S97
S80
S118
S81
S87
S85
S89
S82
S83
S127
How can I do that ?
Hints:
First part of file:
2n10 B127 mg/dL 01:45 pm 3 of January E83 mg/dL 10:03 am 3 of January H97 mg/dL 11:05 pm 2 of January K80 mg/dL 06:00 am 3 of January P118 mg/dL 08:15 am 3 of JanuaryAlways consists of six rows, so the first line that I actually want to read and plot starts from the seventh row.
Second part of file (which I want to read and plot) may contain an arbitrary number of rows, but every row starts with character
Sand the end of file is always marked by charactera.
Please help me ^_^
Thanks and best regards.