[REBOL] Re: Using "repeat" in write/append/lines

2004-05-05 Thread Ladislav Mecir
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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-05 Thread ML
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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Gregg Irwin
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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Gregg Irwin
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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Maxim Olivier-Adlhoch
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.

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Dide
> 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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Maxim Olivier-Adlhoch
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

[REBOL] Re: Using "repeat" in write/append/lines

2004-05-04 Thread Tom Conlin
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