Jump to content
UBot Underground

File pointer Issue


Recommended Posts

when we use save-to-file in a loop...each time the content are save from the start and contents are over-written...

is there can be a way by which each time File pointer comes in the end and writes in the end without over writing the data.....?

Link to post
Share on other sites

Try Save it to a new file everytime. And in the end add all files to list, and add all lists to one list, and save that list to a file.

ya that could be done...

ok just one thing i know i have to use add-to-file command...but after that should i directly insert file...or i should use list from file...one by one in a loop...?

Link to post
Share on other sites

I understand the logic, but start the pointer at end of file, and then at the end of each loop add the new batch to the same file would be a great option. This way if a very large job is running, and something happens, all work isn't lost.

Link to post
Share on other sites

I understand the logic, but start the pointer at end of file, and then at the end of each loop add the new batch to the same file would be a great option. This way if a very large job is running, and something happens, all work isn't lost.

you are absolutely right adbox...i know the same thing i am trying to do...but i dont know how to get the pointer in end of the file there i s no separate command or any thing like that...every time it over writes the data in the loop...:(

Link to post
Share on other sites

oh!!! thanks a lot...you are such a help...finally i have appended a string in a fie without over writing...

but one thing i want to mention here that when i am trying to append a list or a file as a whole its not doing it.....

please could you help me in this regard...?

Link to post
Share on other sites

oh!!! thanks a lot...you are such a help...finally i have appended a string in a fie without over writing...

but one thing i want to mention here that when i am trying to append a list or a file as a whole its not doing it.....

please could you help me in this regard...?

Hey i have done list also :D ...now only problem is appending a FILE....

Link to post
Share on other sites

Hey i have done list also :D ...now only problem is appending a FILE....

Take a look at the bot I posted here: http://ubotstudio.com/forum/index.php?/topic/2966-how-to-load-the-whole-content-in-a-file/page__view__findpost__p__9376

It has 3 scripts in it, the last two "read file" and "loop list" are 2 different examples of how to insert the full value of a list into a variable.

Link to post
Share on other sites

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