> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 10, 2000 12:56 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] More stupid Questions
>
>
> If I have this script
>
>
> REBOL [
>       ...     ]
>
>         Text: read File.asc
>       a: now
>         Text: join Text a
>         print Text
>         write NewFile.asc Text
>
>
>
> the Date is NOT added at the end of the file. Instead of File.asc
> get an extra [NewLine] and the Date is joined in the next line.
>
> Example:    This is the time now:
>             12.12.1212
>
> Question: How can I join Text to an ascii file _in the same line_ ???
>
> This is I want to get:
>
>             This is the time now: 12.12.1212
>
> TIA
>
> FreeJack
>

Here's a technique that might give you what you want with more reliability
(I assume you are trying to do something like a log file?):

REBOL [
        ...     ]

         Text: read/lines File.asc
          insert tail last Text now
          print last Text
          write NewFile.asc Text


--Ralph Roberts


Reply via email to