Lizzard 0 Posted March 17, 2013 Report Share Posted March 17, 2013 Hello, I'm new here with a Dev license. Hello everyone! Question:I'm working on my first bot and trying to save .txt file to current working directory - that being the location where the .exe bot is run. How do I do this? I tried just the filename.txt and I get access denied because it tried to save it to uBot installation folder. I've been using Zenno Poster and this was possible with current directory variable, don't know how it works with uBot. Thanks,Lizzard Quote Link to post Share on other sites
ds062692 19 Posted March 17, 2013 Report Share Posted March 17, 2013 Use the special folder function and choose the Application location. save to file("{$special folder("Application")}\\file.txt", "text file") Quote Link to post Share on other sites
AutomationNinja 194 Posted March 17, 2013 Report Share Posted March 17, 2013 You could try something like this save to file($special folder("Application"), "stuff") - you can change the options in the special folder Quote Link to post Share on other sites
nuc63 27 Posted March 17, 2013 Report Share Posted March 17, 2013 I show how I load/ save files in my my tutorial loading/ saving error logs in compiled bots. http://ubots.info/basic-bot-creation-lessons-part-1-loading-error-and-success-file/ 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.