You have to login in order to post a reply to this topic.

2 replies [Last post]
riok
riok's picture
User offline. Last seen 1 year 24 weeks ago. Offline
Joined: 08/15/2010
Posts: 1

Hi, I'm trying to automate adding a line after each line in a list. Right now all it's doing is adding a line to the bottom of the list.

I have

6.Read Text from File >Read content and store into %filecontents2%

7.Append Line To Text >Append to text %filecontents2% the line: TEXT I WANT TO ADD AFTER EACH LINE.

8.Write Text To File > Write %filecontents2% to final.txt

 

 

lokesh
User offline. Last seen 9 weeks 1 day ago. Offline
Joined: 08/05/2010
Posts: 12
Re: Add line

You should read the contents as list and then use the "For Each" loop to write text to the file.

I attached the job, have a look.

Lokesh

AttachmentSize
Add Line After Each Line.waj 17 KB
Samantha
Samantha's picture
User offline. Last seen 17 hours 37 min ago. Offline
Joined: 04/23/2010
Posts: 1337
Re: Add line

Hello riok,

I had a slightly different approach, hope it will be helpful.

Let us know if you need any further assistance

:)
Samantha

AttachmentSize
append text to end of line.waj 16 KB
__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..