Rtavakoli20
Canada
1 Posts |
Posted - 08/16/2015 : 12:54:45 AM
|
Origin Ver. and Service Release (Origin 9.0.0): Operating System: Vista
I want to read some .txt files and their names and extract one part of their names and store in a single column. My code is:
newbook name:="FittingResult" option:=lsname; GetFileName -m *.txt; for (ii=1; ii<= count; ii ++) { getfilename -g ii; aaa$ = %A ; bbb$ = aaa.getToken(1); window -a FittingResult; page.active = 1; wks.col=1; range r1= [FittingResult]"Sheet1"!1[ii]; r1 = bbb$ ; };
but it doesnt work. Any help? |
Edited by - Rtavakoli20 on 08/16/2015 12:58:43 AM |
|