Hi Stuart:
>> 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
>>>
>>>
try:
repeat i 10 [write/append %output.txt "*"]
--
To unsubscribe
t; 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 i
Hi Stuart,
Addendum to my last post. I made a note about CLEAR, but not that I
didn't use COPY in the func. If you plan to keep the values around and
work on them, you can add it to the func, or use COPY on the results.
-- Gregg
--
To unsubscribe from this list, just s
Hi Stuart,
Tom gave you the best general answer, using REPEAT *around* the calls
you want to make, so I'll just chime in with a note.
Disks are faster these days, but you probably don't want to use WRITE
repeatedly if you're going to be making ten thousand calls that way.
Instead, build up a str
oops
should have been:
>> count: 10
>> a: copy "" insert/dup tail a "*" count
>> a
== "**"
-MAx
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.
> 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 wh
count: 10
a: copy "" insert/dup tail a "*" count
print a "**"
OR
full-bar: ""
copy/part full-bar count
I find the second less sexy but easier to read inside code.
HTH
MAx
> -Original Message-
> From: ML [mailto:[EMA
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