Jump to content

[Help] HTTP requests


Recommended Posts

Well, one thing I notice is that you're using _FileWriteFromArray, which, in spite of using FileOpen and FileClose as you have here, will overwrite IDs.txt with $aLog in every loop iteration.  You may be better off writing IDs.txt to an array and using _ArraySearch to check for the visited profile.  Also, you may want to loop through $aLog and add each line using FileWriteLine and add to the IDs array.  Then at the end of the function, write the IDs array back to IDs.txt.  Finally, you may notice a significant speed difference if you keep all FileOpen and FileClose (and _FileReadToArray) functions outside of the loops.

 

In the case of FileWriteLine, I could write directly to IDs.txt file, no?

Link to comment
Share on other sites

Sorry, yes, that's what I meant--loop through $aLog and add each line to IDs.txt using FileWriteLine, but also append each line to your IDs array, so you don't have to read IDs.txt to the array every time you update it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...