I've the following code:
Import["test.txt"]
And it gives me:
1,10
2,20
3,30
4,40
5,50
6,60
7,70
8,80
9,90
10,100
11,110
12,120
13,130
14,140
15,150
16,160
17,170
18,180
19,190
But I only want the time values $8,9,10$ how can I improve my code so that only those times are printed in my notebook?
I used this code but that does not work, but why?
s = Import["test.txt"];
data = ToExpression@StringSplit[
Rest[
StringSplit[s, {""}]
],
","];
Select[data, MemberQ[{8, 9, 10}, #[[1]]] &]