Hi,
will this leave the second tab intact? 

Because that's what I found "hard" to figure out how to do... 

//Best Regards Stefan Falk


> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: den 4 januari 2000 16:16
> To:   [EMAIL PROTECTED]
> Subject:      [REBOL] Simple textfile handling...? Re:
> 
> Hi Stefan,
> 
> I believe this will do what you are after..
> 
> data: read/lines %file-in.txt
> foreach line data [replace line "^-" " "]
> write/lines %file-out.txt data
> 
> Cheers,
> 
> Allen K
> 
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 04, 2000 8:04 PM
> Subject: [REBOL] Simple textfile handling...?
> 
> 
> > Hi,
> > I want Rebol to read a text file with the following format.
> > 
> > Name Name Phone
> > Name Name Phone
> > 
> > 
> > ... ie. a tab separating first name, last name and phone number.
> > 
> > Now I want Rebol to convert it to:
> > 
> > Name Name Phone
> > Name Name Phone
> > 
> > .. ie. Remove the first tab in every line and replace it with a single
> > space, but leave the second as it is. Any ideas of how to achieve this?
> > 
> > file://Best Regards Stefan Falk
> > 
> > 

Reply via email to