Jump to content
UBot Underground

Merge 2 List and Save as Text file


Recommended Posts


set(#i, 0, "Global")
comment("---generating 2 lists with keyword and numbers-----")
loop(10) {
add item to list(%list1, "keyword{#i}", "Delete", "Global")
add item to list(%list2, #i, "Delete", "Global")
increment(#i)
}
comment("---- merge list --------")
loop($list total(%list1)) {
add item to list(%mergelist, "{$next list item(%list1)}:{$next list item(%list2)}", "Delete", "Global")
}
comment("---- saving list --------")
save to file("{$special folder("Application")}\\mergelist.txt", %mergelist)

  • Like 1
Link to post
Share on other sites

You could also just add 2 lists into an empty table as column (1st list is in 1st col, 2nd one in 2nd), then you simply save table as CSV.

 

You can also change delimiter of the table, so you can use ":" if you need to.

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...