1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
| #include "mod_pval.hsp" #include "mod_strarray.as"
#define ctype fname(%1) "strsave"+%1+".txt"
repeat 2 fpos = -1
sdim s
s = "HSP3"
strsave fname(cnt), s, fpos, cnt: fpos = strsize
s.0 = "hhh","sss","ppp"
strsave fname(cnt), s, fpos, cnt: fpos += strsize
s.0.1 = "length2","length3","length4"
strsave fname(cnt), s, fpos, cnt: fpos += strsize
m0 = 64: m1 = 20: m2 = 2: m3 = 3: m4 = 4
sdim s, m0, m1, m2, m3, m4
repeat m1*m2*m3*m4
d1 = cnt\m1
d2 = cnt/m1\m2
d3 = cnt/(m1*m2)\m3
d4 = cnt/(m1*m2*m3)\m4
s.d1.d2.d3.d4 = ""+cnt
loop
strsave fname(cnt), s, fpos, cnt: fpos += strsize
loop
mes "step1 comp."
sdim s, 64, 5 s = "a","b","c","d","e"
repeat 2
strsave "abc"+cnt+".txt", s.2, -1, cnt
loop
mes "step2 comp."
|