require 'printf'
> 'abc _%d = %s.txt' vbsprintf (3{.a) ;"0 (3{. b)
abc _734 = a.txt
abc _480 = b.txt
abc _671 = c.txt
> 'abc _%5.5d = %s.txt' vbsprintf (3{.a) ;"0 (3{. b)
abc _00734 = a.txt
abc _00480 = b.txt
abc _00671 = c.txt
Henry Rich
On 1/31/2011 4:17 PM, Skip Cave wrote:
> if I generate a series of random numbers 0-999 in the array "a":
>
> a = 200 ? 1000
>
> 4 {. a
> 590 730 584 189
>
> And an array of text strings in the array "b":
>
> $ b
> 200
>
> 3 {. b
>
> ???????????????????
> ?C1001?E3014?V2233?
> ???????????????????
>
> how can I add some more non-varying characters, and build those random
> numbers and text strings into a third array of text strings, called
> array c?:
>
> c
> abc _590 = C1001.txt
> abc _730 = E3014.txt
> abc _584 = V2233.txt
> *.
> .
> .*
>
> Skip Cave
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm