RockDiesel 0 Posted December 29, 2009 Report Share Posted December 29, 2009 Is uBot capable of creating text files? I would like to scrape some names into a list, and then create text files based on each name in that list. So after scraping the names it would then loop through and spit out Name1.txt, Name2.txt, Name3.txt, etc... Or do the text files have to already exist before uBot can do anything to/with them? Hope this makes sense. EDIT: Sorry, looks like I posted this in haste before actually trying to find a solution. I ended up figuring it out and in case anyone was curious this is how I did it. Using the Save to file command I just entered the directory I wanted to save to and added $nextlistitem as a subparameter. Basically it looked like C:\whatever\directory\chosen\{1}.txt. {1) = the list item, and it just looped through using each list item as a filename. Since these files didn't exist they were created for me. Problem solved. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 29, 2009 Report Share Posted December 29, 2009 Yes it is possible and you found the right way to do it. You can also use $documentroot to go straight to My Documents. This is very handy if you plan on sharing the script. 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.