combine each line ?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
carkon
Newbie
Posts: 13
Joined: Sun Sep 26, 2010 9:36 am

combine each line ?

Post by carkon » Tue May 17, 2011 3:16 pm

hi everbody ..firstly sorry about my english..
i have a txt file .each line have email adress.


[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
....
...
[email protected]

i want to make combine all of with comma like this;

[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]

how can ý do this ?

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Tue May 17, 2011 7:46 pm

Try this

c:\temp\test.txt = multi-line file
c:\temp\test2.txt = all on one line comma delimited

Code: Select all

  Let>outline=
  Let>k=1
Label>start
  ReadLn>c:\temp\test.txt,k,line
  If>line=##EOF##,finish
  Let>outline=%outline%%line%,
  Let>k=k+1
  Goto>start
Label>finish
  WriteLn>c:\temp\test2.txt,result,%outline%

carkon
Newbie
Posts: 13
Joined: Sun Sep 26, 2010 9:36 am

Post by carkon » Tue May 17, 2011 9:35 pm

thank you very much .its works

thanks again.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts