Jump to content
UBot Underground

Append to a text file


Recommended Posts

Hi this is probably basic, but I scrape some data twice a week and save it to a text file. I use winautomation to append that data into another text file (which has all the previous data in it). Is this possible using Ubot?

 

Thanks

Barista

Link to post
Share on other sites

Hi this is probably basic, but I scrape some data twice a week and save it to a text file. I use winautomation to append that data into another text file (which has all the previous data in it). Is this possible using Ubot?

 

Thanks

Barista

 

This has been asked before but I couldn't find it on a quick search. Anyway to append you can do something like this...

 

post-732-12740941323575_thumb.jpg

 

Andy

Link to post
Share on other sites

I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time :)

Link to post
Share on other sites

I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time :)

 

Yes I figured this would be the case.

thanks.

Link to post
Share on other sites

I'm not sure that one actually would work, but you would have to load in the .txt or csv into a list, add the new information and then save the combined list to the .txt again since it is overwriting every time :)

 

Will be great to have and additional parameter on 'save to file' where we can select to append or not data to a file.

Your solution will work, but it have very hard resource consuming, it is not practical to make a log file in a list (on memory).

Please don't take this as a complain, i love ubot tool, but the file append is a trivial operation even the most simple programming language, i guess it should be easy to implement.

Link to post
Share on other sites

Nice Andy! Absolutely Nice!

 

You know what I am working on so this fixes one of my final little details.

 

That's one notch off of the ToDo list!

Link to post
Share on other sites
  • 2 weeks later...

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...