Connecting Tech Pros Worldwide Forums | Help | Site Map

Enter string to the next line

ctrohana's Avatar
Newbie
 
Join Date: Feb 2007
Location: Malaysia
Posts: 2
#1: Feb 28 '07
Hi guys,
I need ur help.
If I have character strings (data file) as below:

X001234
X001345Y002323
X00142
X001567

How do i program, if I want to enter Y002323 to the next line? and how I can add '0' character after X00142 so that the strings are like:

X001234
X001345
Y002323
X001420
X001567

thanks a lot.

-ct

DeMan's Avatar
Lives Here
 
Join Date: Nov 2006
Location: Adelaide, SA
Posts: 1,748
#2: Feb 28 '07

re: Enter string to the next line


parse the string and enter a newline("/n") (I'm not sure the null terminator ("/0") necessarily gives new line....)
Reply