<<repeat i 10 [write/append/lines %output.txt "*"]

should do it>>

Tom, what that did was print a single * on consecutive lines like this:
*
*
*
*
*
*
*
*
*
*

Instead of having them on a single line like this **********

Stuart

> ------------Original Message------------
> From: Tom Conlin <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Tue, May-4-2004 3:30 PM
> Subject: [REBOL] Re: Using "repeat" in write/append/lines
> 
> 
> On Tue, 4 May 2004, ML wrote:
> 
> >
> > I am adding lines to a text file and it is one of those things that I want to 
> > print out as many asterisks as is listed in a variable to make a simple graph.  So 
> > here is the effect I am after:
> >
> > 2pm : ****
> > 3pm : **
> > 4pm : *********
> >
> > The thing is how do I "print" those asterisks when I am outputting to file. I 
> > don't know what to put in the repeat function.
> >
> > When trying out this on the console, I would try a command like:
> >
> > write/append/lines %output.txt repeat i 10 ["*"]
> 
> 
>   repeat i 10 [write/append/lines %output.txt "*"]
> 
> 
> should do it
> 
> 
> >
> > But instead of ********** in the appended line I would get a single *
> >
> > Can anyone help?
> >
> > Stuart
> >
> > --
> > To unsubscribe from this list, just send an email to
> > [EMAIL PROTECTED] with unsubscribe as the subject.
> >
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
> 
> 
> 
> 

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to