sorry to trouble here.
when I write " io. " in codea, there are " close , flush, input , lines open —read—write "etc shown.
but cannot find reference in codea. where can I find the explaination of above. ?
this is found when I want to do something on txt file. is there a easy way to handle line in txt file ?
my text is normally like this
[00:00.00][101]Unit one Hello! \
[101]
[00:04.80][101]Hello! I'm Zoom. \
[101]
[00:07.82][101]Hi! My name's Zip. [101]
[00:11.11][101]Hello! I'm Mike. \
[101]
[00:15.68][101]Hi, I'm Wu Yifan.\
[101]
[00:18.52][102]Hello, I'm Chen Jie. \
[102]
[00:21.50][102]What's your name? \
[102]
[00:23.05][102]My name's Sarah.\
[102]
[00:25.82][102]Goodbye! \
[102]
[00:27.88][102]Bye, Miss White! \
[102]
if not, is it possible to handle the panttern with variable toghter ? such as :
I have a variable
str = “101” – 101 is in variable as it could be 102,103,104 etc. as text above.
if I want to get something concerned with 101, then I need to get position of first [101] and the second [101], then I can get the texts btw them . also I can get others btw 2*[101]
(for this target, I hv to add too many [101][102][103][104] in the text file, then I can get what I want. )
to get [101] [102][103][104], I need to make a pattern. but I tried many way, still cannot put the variable name / the str in pattern. is it impossible ?
(acturally I already solved this by my way. I cut all texts into different txt files. then I need not put so many [102][103][104] etc in text. also good for my classes. but I found above and still want to solve for later. )
thanks much for your help.