|
|
| Author |
Message |
itdsen
New User
Joined: 20 Sep 2006 Posts: 17 Location: Chennai
|
|
|
|
following is my input file
senthil
kumar
i wants o/p file as
s e n t h i l
k u m a r.
Give me a sample program. |
|
| Back to top |
|
 |
References
|
Posted: Fri Jun 13, 2008 5:27 pm Post subject: Re: How to insert space |
 |
|
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 497 Location: Richmond, Virginia
|
|
|
|
That's very nice. |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 964 Location: Virginia, USA
|
|
|
|
| itdsen wrote: |
following is my input file
senthil
kumar
i wants o/p file as
s e n t h i l
k u m a r.
Give me a sample program. |
Don't demand.
Simple loop with move and reference modification.
I shouldn't do this but here goes.
| Code: |
move spaces to target.
perform varying x from 1 by 1 until x > length of source
move source (x : 1) to target ((x * 2) - 1 : 1)
end-perform
|
|
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 497 Location: Richmond, Virginia
|
|
|
|
| Craq - getting weak. Friday, right? |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 964 Location: Virginia, USA
|
|
|
|
| Phrzby Phil wrote: |
| Craq - getting weak. Friday, right? |
Yes it's been a long week and I'm getting weak in my old age. |
|
| Back to top |
|
 |
|
|