On Wed, 20 Mar 2013 05:47:32 -0700 (PDT),
ebmso...@ebm.fr wrote:
>The problem is that the enw file is generated depending on the results of
>the tests done on several files. Thereofre, i have no idea on how many
>line the new file will content and no idea also on each lines.
You can use charout() to write each line and lineout() to write the line
feeds in between. You'd need to keep a flag to show whether you have
written the *first* line to each file or not.
OutLine: Procedure Expose writeflag.
Parse Arg file, line
If writeflag.file = 1 Then Call LineOut file
Else writeflag.file = 1
Call CharOut file, line
End
You'd have to make sure to expose that WRITEFLAG. stem in all your
procedures. If you're using ooRexx, you could avoid that complication by
using the .local object instead of variables to hold the flags:
OutLine:
If .local~hasIndex('writeflag.'Arg(1)) Then Call LineOut Arg(1)
Else .local~put(1, 'writeflag.'Arg(1))
Call CharOut Arg(1), Arg(2)
Return
�R / Darla: Leftovers aren't the mark of a man. \
www.bestweb.net/~notr
Andrew Reid: Actually, they are, because that's how men's shirts button.