Jump to content
UBot Underground

Writing current list item to a file


Recommended Posts

Morning all.

 

I am going through a loop of email addresses and once the bot does its things, if the email is valid I want it to write that email address to a text file.

 

Here is the sub I am using to write to the file and the error message I am getting (I know the loop / email checker is working as I used this sub to write out the current list position to the text (just meant I had a list of numbers instead of the actual email address).

 

The test email list has 2 invalid and 1 valid email address, with the valid email being number three in the list.

 

Hope someone can point out the place where I am going wrong!

 

Cheers all.

post-68-12936225696942_thumb.png

Link to post
Share on other sites

Thats what I am trying to do with my loop - I don't want to specify a number as it will depend on how many times the loop has gone round.

 

I didn't show the loop function, perhaps I should of.

 

I am looping for the count of items in the email list.

So first time round the list item will be 0 (or is it 1?)

Second time round it will be 1

Third time 2 etc

 

So whatever number it is will change.

 

Cheers

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