seoeymard 2 Posted August 26, 2013 Report Share Posted August 26, 2013 Hi, I badly need this final code.I need to Merge two list and then save it in a txt file.Like "keyword:number"Format or some sort.Thanks a lot! Quote Link to post Share on other sites
danoctav 7 Posted August 26, 2013 Report Share Posted August 26, 2013 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) 1 Quote Link to post Share on other sites
UBotDev 276 Posted August 26, 2013 Report Share Posted August 26, 2013 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. 1 Quote Link to post Share on other sites
seoeymard 2 Posted August 27, 2013 Author Report Share Posted August 27, 2013 Thanks Guys!I followed the table thingy. It works.Then grab the code for saving. It works.Finished my bot! Yey! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.