The data to be written to the file should be the left argument of
(1!:12) and the position to write should follow the file name.

   'Test' 1!:12 'Test.txt';0
   'C' 1!:12 'Test.txt';2
   fread 'Test.txt'
TeCt

On Wed, Dec 16, 2009 at 6:24 AM, Hermann Wandelt <bay...@online.de> wrote:
> I'm not very experienced in using Foreign Conjunctions. Therefore I can't
> see what the length error causes.
>
>
>
> NB.---------------Test No. 1
> ----------------------------------------------------------------------------
> --------------------------------------------------
>
> sg
>
> 0
>
> (10 15 15 10 10":tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)
> (1!:12)('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
>
> |length error
>
> |   (10 15 15 10 10":tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi)  (1!:12)
> ('d:\xldlm\dlm_daten\dlmnIndex.txt';(sg*60),60)
>
>
>
>
>
> NB. -------------Test No. 2
> ----------------------------------------------------------------------------
> ---------------------------------------------------
>
>  sg
>
> 0
>
>  a=. 10 15 15 10 10":tpr=.sg,(sg*#Tin),(#Tin),(sg*#Tdi),#Tdi
>
>   #a
>
> 60
>
>   $a
>
> 60
>
>
>
>   f=:1!:21 <'d:\xldlm\dlm_daten\dlmnIndex.txt'
>
>   f
>
> 270030848
>
>
>
>   a (1!:12) f,(sg*60),60
>
> |length error
>
> |   a    (1!:12)f,(sg*60),60
>
>
>
> NB.
> ----------------------------------------------------------------------------
> ------
>
>
>
> Pleas, give me an advice.
>
> Thank You,
>
>
>
> Hermann
>
> _
>
> Hermann Wandelt
>
>
>
> Schustersweid 6
>
> 47665 Sonsbeck
>
> E-Mail: bay...@online.de
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to