xanathos Posted July 26, 2013 Author Share Posted July 26, 2013 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 More sharing options...
GMK Posted July 26, 2013 Share Posted July 26, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now