ty Bong but (forgive me) if you had multiple startwd and endwd in one file how would you iterate
ie.helloabc def ghi 123 AAAgoodbye; set var1
hellojkm nop qrs 456 BBBgoodbye; set var2
hellotuv wxy zzz 789 CCCgoodbye; set var3
etc..
thx again
I'm trying to read a data file that has multiple records. Each record has a start and end word:
ie. hello(start) ---DATA--- goodbye(end)
how can I search for the start and end words and read the data
in between?
set input [open c:\hello.txt r]
set contents [split [read $input] \n ]
?
?
ty
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.