Jump to content
UBot Underground

Putting The Text From Several Text Files Into 1 Text File


Recommended Posts

I have a folder with about 100 .txt files. I want to put all of the text from the files into 1 .txt file.

It makes sense to use "$text from list", but how would I loop that?

I tried

 

Loop

List total

 

text from list

next list item..

 

would i use "replace" ? I also read somewhere on the forum how you could use a shell command to get all the text off of the files. Could someone point me in the right direction?

Link to post
Share on other sites

There are a couple of ways to do it.

 

I would try this first.

 

1. Setup a loop

2. Load the first file into a List

3. Save the list your new file for all of them

4. Repeat the loop

 

You're done!

Link to post
Share on other sites

Really appreciate the quick response Buddy and TJ. Question TJ, In your bot, in the "add to list" node, the list "%looped" is only 1 file, will this loop pull the text from every(100) .txt files from the folder from the "$get files" folder? I will try it.

Link to post
Share on other sites

TJ, Dude, That worked too smooth!! I am going to take it apart and learn how everything worked, and i will also try what Buddy said. My goal is to learn everything about Ubot.

Thanks again TJ.

Link to post
Share on other sites
  • 4 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...